This file contains hidden or 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 |