USB Tether -- The old school method:

but you CAN attach if you rename it to .zip :cool:

but its still not working for me? and thats chmod 0777 usbt after you rename it and push it to /system/xbin/ i manually pasted it so i could get online. (im at work, shh)
 
yup, it was my stinkin file. Damn linux and non standard carriage returns in ascii text files...

lol

i need a new text editor obviously...lesson learned: since android is Linux based, a Linux compatible editor is necessary. NOTEPAD is not sufficient...lol

works great now.

now we need a widget..lol

Also u dont need to go to settings to turn off. Just pull down the window shade and reconfirm charge only (or whatever else), and it will disable.
 
Last edited:
for those of you using windows, and didnt put on sync, youll need these for the NDIS drivers. Just unzip and point to when asked. They aren't in the SDK driver set.
:cool:
 
im using Ubuntu Linux and windoze XP and NOW i got it....

get this file
4shared.com - online file sharing and storage - download usbt

then adb push usbt /system/xbin
adb shell
cd /system/bin
chmod 0777 usbt
exit

next for Linux get
4shared.com - online file sharing and storage - download usb_tether
for Windows get
4shared.com - online file sharing and storage - download usbtether.BAT

either way you will have to modify the files to your environment. Change them to wherever adb lives unless its in your path. Pop a shortcut to the file on your desktop and execute the scripts. The one thing i was overlooking is that from adb you can execute the file on the phone. as soon as i tried it worked. Actually im using the script to post right now!
WOOT!!
 
nice...

since ill be tethering different workstations, a local .bat isnt terribly helpful for me. Just the adb shell command.

now for a widget....time for me to start messing with developement i guess...
 
If I understand correctly... the solutions offered all call the script from a prompt on the computer being tethered!? Has anybody managed to run the bash script directly on the phone? If the commands can be issued directly on the phone, the need for a computer running the android sdk is eliminated. That is to say -- any computer with working NDIS drivers could be tethered.
 
i have tried and cant get it to work. i see the connection start, then it drops. So for now this is a way to not have to type or cut/paste that one line. Ill keep looking tho.
 
Ok, I have managed to run the script directly from the phone.
Using "ConnectBot" on the phone, I issue the command as such:

# sh /system/xbin/usbt

sh did the trick, but I was forced to provide the full path.


All other attempts to call the script failed.
usbt
/system/xbin/usbt
./usbt
./system/xbin/usbt
bash usbt
 
worked for me on executing it from both the phone and on the computer. For my file a few pages back, i called it USB_tether, not usbt
hey flipfone, are you typing su before you run the command from the phone?
 
works for me using terminal on the phone. Teminal doesnt start as Root, so u have to SU 1st. No path required however, just the script name.

If you use Rufflez file and rename it (thats what i did), bear in mind its a Shell (sh) script. NOT a bash script.
 
Last edited:
im using Ubuntu Linux and windoze XP and NOW i got it....

get this file
4shared.com - online file sharing and storage - download usbt

then adb push usbt /system/xbin
adb shell
cd /system/bin
chmod 0777 usbt
exit

next for Linux get
4shared.com - online file sharing and storage - download usb_tether
for Windows get
4shared.com - online file sharing and storage - download usbtether.BAT

either way you will have to modify the files to your environment. Change them to wherever adb lives unless its in your path. Pop a shortcut to the file on your desktop and execute the scripts. The one thing i was overlooking is that from adb you can execute the file on the phone. as soon as i tried it worked. Actually im using the script to post right now!
WOOT!!

and as noted by rufflez download Terminal Emulator from the market, then
1) su <enter>
2) usbt <enter>

you will see the same errors but it connects.
 
the last time i did it on my mac, it created a profile for it... but still have no clue what settings I would need to input into mac to get it to work. any ideas?
 
dont know much about macs, i assume they require drivers just like Win-blows.

But if your using the drivers from the SDK, the NDIS drivers are not in there, they are from HTC and included with the Sync application.

Did they release a sync app for Macs?
 
Last edited:
I frequently use wifi-tether. Because battery life suffers, and my phone heats up during extended sessions... I desired an alternative. After much research this is the USB tethering solution I found.

Tested and working on Win-XP and Linux.

1) connect phone and computer via USB cable. (Charging only. There are no other inputs needed.)

2) ADB shell into the phone and issue the "su" command. (I assume most will understand what I'm talking about!)

3) Issue the following command:
/system/bin/netsharing net on && echo 4 > /sys/devices/platform/msm_hsusb/usb_function_switch (two commands actually :p)

At this point the ADB shell automatically drops, and the computer indicates a successful USB connection. When I want to tear down the connection I do: Menu >> Settings >> Wireless and Networks. De-select "Internet Sharing" and every thing is back to normal.

This solution has proved reliable in my experience. The connection feels quicker than wifi-tether, and my phone battery thanks me. Let me know how it works out for you.

I attempted to make a bash script for issuing the command in step three. It would be nice to issue something like "usbt" instead of the much longer command needed. If anyone can tell me what I am doing wrong in this regard I would appreciate it.

Running:
beezy option 4

Great find evildean. This works great on my Evo. Download Gscript Lite from the Market and create a script with super user checked. Add shortcut to Home screen and you got a one click solution. No batch files or anything needed.

/system/bin/netsharing net on && echo 4 > /sys/devices/platform/msm_hsusb/usb_function_switch
 
Last edited:

Forum statistics

Threads
960,726
Messages
6,983,398
Members
3,164,551
Latest member
Djmanitas89