#!/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}
#!/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}
本文标题:通过WIFI连接Android设备进行调试
本文链接:https://www.haomeiwen.com/subject/nmnupktx.html
网友评论