Driver on

How to get internet on your phone via USB

You might also name this reversed USB tether.
This may turn out to be useful when you’re close to a pc (Win XP/Win7) and there is not any Wifi to hook up with and so on..
So after some analysis and attempting I’ve discovered some data on how to do that.

* Android 2.2 (or an older model with a root tethering app)
* ADB from Android SDK, or a rooted Android 2.2 with terminal in root mode

Set up USB drivers from Android SDK.

Join USB cable and activate USB Tethering.
You must see a brand new community interface. (On XP you may want to put in the RNDIS driver manually, see under)
For those who’re additionally lacking RNDIS driver on Win7, look right here.

Win XP handbook driver set up Android USB Ethernet/RNDIS: (You possibly can skip this when you’re on Win 7)
1. Obtain the next configuration file contained in the *.zip connected to this put up (tetherxp.inf) to your Home windows XP laptop.
2. Use the USB cable that got here along with your telephone to attach your telephone to your laptop.
3. On the Android telephone, press Dwelling > Menu > Settings to open the Settings utility.
4. Press Wi-fi & networks > Tethering & moveable hotspot.
5. Test USB tethering.
6. When Home windows XP’s New {Hardware} Wizard opens, choose No, not at the moment and click on Subsequent.
7. Choose Set up from an inventory or particular location and click on Subsequent.
8. Click on Browse to browse to the listing the place you put in the configuration file you downloaded in Step 1 and click on Subsequent. Home windows XP makes use of the configuration file to configure itself to help USB tethering with the Android telephone. (This may take some time)
9. When Home windows XP finishes putting in the software program for Android USB Ethernet/RNDIS, click on End.

Bridge the two community interfaces.

Setup usb0 interface of your telephone. It’s important to choices:
1. Out of your laptop, execute:
./adb shell netcfg usb0 dhcp
2. Or in a root terminal in your telephone, kind:
netcfg usb0 dhcp

You must now be capable to connect with Web in your telephone utilizing your laptop’s Web connection.

Attempt to do a ping to make certain.

To close down the reverse-tethering, first unbridge interfaces in your laptop:
sudo ifconfig eth0 down
sudo ifconfig usb0 down
sudo ifconfig br0 down
sudo brctl delbr br0
sudo ifconfig eth0 up
sudo dhclient eth0

Then in your telephone, uncheck the USB Tethering possibility.


It’s working now. After organising ICS kind in console emulator in your telephone:
ifconfig usb1 netmask up
route add default gw dev usb0
iptables -F
iptables -F -t nat
setprop internet.dns1
setprop “internet.gprs.http-proxy” “”

Hope this helps some one who needs this to the fitting route. :)
And possibly we’re in a position to create an app to do that all automated.

Recognized points however doesn’t apply to all customers:
1. Web in browser utility doesn’t work.
2. Cannot ping area identify.

For somewhat extra data take a look at the sources, this contains the Linux model too.

Sources: Google android, Mycila

Leave a Reply

Your email address will not be published. Required fields are marked *