Skip to content

Instantly share code, notes, and snippets.

@jrickerd
Created January 25, 2017 17:06
Show Gist options
  • Save jrickerd/2959710668937f3716bb0ac776432d6a to your computer and use it in GitHub Desktop.
Save jrickerd/2959710668937f3716bb0ac776432d6a to your computer and use it in GitHub Desktop.
enable android wifi
# enable:
adb tcpip 5555
adb connect $(adb shell ip -f inet addr show wlan0 | grep inet | tr -s '
' | cut -d ' ' -f 3 | cut -f 1 -d '/'):5555
# disable:
adb usb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment