Reverse tethering routes traffic from the device via host gateway over USB.
This allows the Android device to access the network through the host without
depending on Wifi or Bluetooth.
This method leverages VpnService API and does not require root access.
VPN-based USB “reverse tether”
Reverse tethering routes traffic from the device via host gateway over USB. This allows the Android device to access the network through the host without depending on Wifi or Bluetooth.
This method leverages VpnService API and does not require root access.
Technical details
Installation
ant
Get Android SDK and NDK. Using the SDK manager, get build tools.
Build the native library:
Build the apk and install it:
Build the host-side forwarder:
Eclipse
Get Android Development Tools and Android Native Development Tools.
Import existing project into workspace and build.
Build the host-side forwarder:
Usage
Start the VPN service:
Wait for the alert dialog.
Start the tunnel:
You should see a key icon in the status bar.
When done, press Enter to stop the tether.
License
See LICENSE.