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
)
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
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
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
Last edited:
