Created
August 20, 2014 10:40
-
-
Save JcMinarro/f59d45fbe6d31533c6dd to your computer and use it in GitHub Desktop.
Script to connect Android devices to ADB over tcpip
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/bash | |
adb devices | |
echo "Waiting for device" | |
adb wait-for-device | |
ip=$(adb shell ifconfig wlan0 | cut -f3 -d ' ') | |
echo "Device ip: $ip" | |
echo "Setting Up tcpip port" | |
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
adapted so it works for me:
might have been needed from a change in android tooling