Reverse Tethering on Android (A complete guide)


Android Reverse Tethering for windows users.Tethering is the ability to surf on your PC using the 3g of your phone.
Reverse tethering is the opposite : surf on your phone using the ADSL of your PC.
REMEMBER: This work only for rooted users !!!

Downloads:

For non rooted users, you can try out the other solution, but require more manipulations and is limited to surf : http://www.codeproject.com/KB/androi…orwarding.aspx 

THIS TOOL WON’T WORK IF YOU HAVE APPS LIKE ADAWAY THAT CHANGE THE HOST FILES. RESTORE HOST FILES BEFORE YOU CONTINUE.

Installation :
Unpack the zip file. This zip files contains the windows part, ADB and the android APK. 

Before starting the tool :
  • You must install drivers for your device. Generic driver provided by Google is on the usb_driver.zip
    You can also check the Universal Naked Driver
  • Ensure you have debugging enabled on your phone :
    Settings > Applications > Development > USB Debugging > Turn On
  • Ensure you have root access AND SuperUser application installed.
    Change the superuser settings (Menu -> Preferences -> Notifications part) :
    Uncheck “Notifications” label to display “Do not show notification when an app is granted SU Permissions”
 
AndroidTool:


The AndroidTool.exe is the windows part :
The low level communication tool (ADB) is included in the zip file.
AndroidTool will try to find ADB in c:android-sdk-windowsplatform-toolsadb.exe
If not found he will use the provided one.The first time you use the program :

  • If you want to use another version of ADB, click “config” and in the first tab enter the path to the ADB
  • Select the DNS server to use in the right list. On complex system, some DNS can be detected.

Start reverse tethering:

Just click “Connect”.
If it’s the first time you use the program, This will install the latest android package and the dependencies (busybox and redsocks).
The SuperUser process may ask you to allow “Usb tunnel” 

 

If the android process crash after receiving superuser rights, close the windows program and start again.The android interface (first tab) will show connections forwarded to windows.
Others tabs are just for debugging (give information about system route tables and connections). Not yet finished.

Start your browser
Google chrome will complain that no connection is available. Don’t care. That work.
Firefox , opera and dolphin don’t have problem with that !!!The current version of the application can’t forward low level ICMP packet (PING).
From Android Os point of vue, there is no internet connection.The Market :
The search market work, but it’s not possible to download.
The application want to have an active 3G or WiFi network interface.
Some market applications are tagged “WiFi” only.
I can’t fix this problem without changing low level API (Connectivity Manager/Connectivity Service).
If a developer can generate a Service.jar enabling traces in Connectivity Service class, he can send it to me.To get around this problem, you can activate the 3G BEFORE starting reverse tethering,all the data will goes to the usb.
Tips : You can connect to some WiFi hotspot not protected by a key.
It’s only when you want to surf that the hotspot ask you a user/password.
But, at this point, we have an ‘active’ connection. Market download should work after starting reverse tethering.

Other apps :
The system detect automatically ports like http (80), HTTPS (443) , Market (5228),UDP ports like DNS, …
You don’t need to add static ports in the windows program (config / ports).
So unless the application is not well written, it must work.
I suppose it’s more than 95%

Connectivity hack :
This will install some low level program to install a “fake” Wifi for browsers and google play market.
Don’t worry, I didn’t brick my phone and tablet during the development. 

The Xposed framework author and me are not responsible for anything you do with your phone/tablet/rice cooker.
This work for android 4.X, but an experimental version of the Xposed framework for Gingerbread made by liudongmiao can be found here: http://forum.xda-developers.com/show…4#post44034334 (no support from my side)

  • On the windows program, go to tools tab and click “install hack”
  • Launch the Xposed Installer (you just installed) on your android and click on “Install/Update”
  • Go to the module tab and check the HackConnectivityService (see screenshot below)
  • Reboot the phone
  • Done!
    This work for market but also for some other programs (some games,skype,hangouts…)


For older android 2.x or 3.x version :
The application want to have an active 3G or Wifi network interface. 
Some market applications are tagged “Wifi” only.
To get around this problem, you can activate the 3G BEFORE starting reverse tethering,all the data will goes to the usb.
Tips : You can connect to some wifi hotspot not protected by a key. 
It’s only when you want to surf that the hotspot ask you a user/password. 
But, at this point, we have an ‘active’ connection. Market download should work after starting reverse tethering.

Not fully working application but work if you install the HackConnectivityService on android 4.x:

  • Market (only download)
  • Skype use the same ‘interesting’ API to check connection
  • If someone know another one, post a reply !

Troubleshooting:

If your device is not listed in the “select a device” combo box :

  • Ensure USB debugging is enabled (Settings > Applications > Development > USB Debugging > Turn On). Deactivating and reactivating the Debug mode may help
  • The ADB subsystem is sometimes not working properly. Click the “Kill ADB” button (on Tools)
  • Your device is perhaps not installed properly. See your device manufacturer. On the download section of this article, the usb_driver.zip contains a generic driver. Latest version can be download here : http://developer.android.com/sdk/win-usb.html

Click refresh or restart the tool to detect your device.
If the connection shutdown often, try another usb cable.

If you still have questions feel free to leave a comment down below or post it on our Facebook Page

Comments

comments


Like it? Share with your friends!

5 SHARES
4
5 SHARES, 4 points
What's Your Reaction?
Interesting Interesting
1
Interesting
Geeky Geeky
1
Geeky
WTF! WTF!
2
WTF!
LOL LOL
8
LOL
Confused Confused
2
Confused
Awesome Awesome
0
Awesome
Love it! Love it!
3
Love it!
OMG! OMG!
0
OMG!
Scary Scary
0
Scary
Ayan Sarkar

I make YouTube videos and write here on Windroidica to help you improve your digital life. I post three videos every week and they contain mainly of Video Podcasts, Tutorials and much more. I am very happy to help. Say Hi!

log in

Don't have an account?
sign up

reset password

Back to
log in

sign up

Captcha!
Back to
log in