Skip to content

Instantly share code, notes, and snippets.

@mukaschultze
Created November 28, 2018 17:56
Show Gist options
  • Save mukaschultze/2972a8688b1e9c0dc376339421204540 to your computer and use it in GitHub Desktop.
Save mukaschultze/2972a8688b1e9c0dc376339421204540 to your computer and use it in GitHub Desktop.
ADB over wifi
cd "$ANDROID_HOME/platform-tools/"
./adb kill-server
IP=$(./adb shell ifconfig wlan0 | grep "inet addr:\([^ ]*\)" -o | sed 's/inet addr:\([^ ]*\)/\1/g')
./adb tcpip 5555
echo Connecting to $IP
./adb connect $IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment