Last active
June 22, 2021 09:44
-
-
Save altamic/332857c34f4154b0aecfadea548fd246 to your computer and use it in GitHub Desktop.
Activate adb wifi connecting to a LAN device by IP
This file contains hidden or 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
# 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