Created
April 26, 2020 07:29
-
-
Save MadanBhandari/8333b2dfc403b4c76cda6f394492f0e4 to your computer and use it in GitHub Desktop.
adb over wifi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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