Created
November 28, 2018 17:56
-
-
Save mukaschultze/2972a8688b1e9c0dc376339421204540 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
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