Skip to content

Instantly share code, notes, and snippets.

@GEMISIS
Created August 11, 2019 05:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GEMISIS/f625aa2661f52c6c13c21d1a0ac67a6e to your computer and use it in GitHub Desktop.
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".
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