Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 20 lines (12 sloc) 562 Bytes
# Android <-> Linux Tethering Script with Slirp
# This script tether the internet from the phone to your PC using Slirp
# See
# Path to ADB
export ADB=/opt/android-sdk-linux_x86/platform-tools/adb
if [ $USER != "root" ]; then
echo "Please run this script as root"
echo "Connecting to the phone via slirp..."
$ADB ppp "shell:HOME=/data/local /data/local/slirp ppp mtu 1500" nodetach noauth noipdefault defaultroute usepeerdns notty
echo "Done."
Something went wrong with that request. Please try again.