Created
August 11, 2019 05:28
-
-
Save GEMISIS/f625aa2661f52c6c13c21d1a0ac67a6e to your computer and use it in GitHub Desktop.
Quick function to enable wireless adb connections for android devices. Disable with "adb usb".
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
function adb_wireless() { | |
ip_address=$(adb shell ip route | awk '{print $9}') | |
adb tcpip 5555 | |
adb connect $ip_address:5555 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment