Skip to content

Instantly share code, notes, and snippets.

@spvkgn
Created December 5, 2020 09:26
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 spvkgn/1c120f06fca6de3400f49a773f71a9a7 to your computer and use it in GitHub Desktop.
Save spvkgn/1c120f06fca6de3400f49a773f71a9a7 to your computer and use it in GitHub Desktop.
Enable ADB over TCP/IP
#!/bin/sh
adb -d tcpip 5555 && sleep 1
adb -d connect `adb -d shell ip -4 addr show wlan0 | grep -oP 'inet \K[0-9.]*'`:5555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment