Skip to content

Instantly share code, notes, and snippets.

@MadanBhandari
Created April 26, 2020 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MadanBhandari/8333b2dfc403b4c76cda6f394492f0e4 to your computer and use it in GitHub Desktop.
Save MadanBhandari/8333b2dfc403b4c76cda6f394492f0e4 to your computer and use it in GitHub Desktop.
adb over wifi
#!/bin/sh
adb disconnect
adb tcpip 5555
sleep 3
IP=$(adb shell ip addr show wlan0 | grep 'inet ' | cut -d' ' -f6| cut -d/ -f1)
echo "${IP}"
adb connect $IP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment