美文网首页
通过WIFI连接Android设备进行调试

通过WIFI连接Android设备进行调试

作者: andforce | 来源:发表于2020-10-12 14:34 被阅读0次
#!/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