通过WIFI连接Android设备进行调试
2020-10-12 本文已影响0人
andforce
#!/bin/bash
#adb tcpip 5555 && adb connect 你的Android手机IP:5555
port=$(($RANDOM+6666))
adb tcpip ${port} && sleep 3 && adb shell ip addr show wlan0 | grep 'inet ' | cut -d' ' -f6|cut -d/ -f1 | xargs -t -I {} adb connect {}:${port}