Skip to content

Instantly share code, notes, and snippets.

@altamic
Last active June 22, 2021 09:44
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 altamic/332857c34f4154b0aecfadea548fd246 to your computer and use it in GitHub Desktop.
Save altamic/332857c34f4154b0aecfadea548fd246 to your computer and use it in GitHub Desktop.
Activate adb wifi connecting to a LAN device by IP
# activate adb wifi connecting to a LAN device by IP
function adb-wifi {
if [ -z "$1" ]
then
echo "Usage:\nadb-wifi <device-ip>"
return 1
fi
ADB_WIFI_TCP_PORT=5555
adb tcpip $ADB_WIFI_TCP_PORT
adb connect "$1":$ADB_WIFI_TCP_PORT
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment