Created
December 3, 2014 12:18
-
-
Save lampapos/37fe6522602085a9b1a3 to your computer and use it in GitHub Desktop.
adb wifi
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/sh | |
ip=$( adb shell ifconfig wlan0 | cut -f 3 -d ' ' ) | |
port=5555 | |
adb tcpip $port | |
adb connect $ip:$port |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -L http://bit.ly/adb-wifi | sh
;)