Appium远程连接Android手机

2022-02-25  本文已影响0人  深吸一口气

手机与电脑处于同一个局域网

手机打开USB调试

# 显示Android序列号 ,表示通过USB连接成功
cmd> adb devices
cmd> adb devices

List of devices attached
b11d0c5d    device

让设备在 5555 端口监听 TCP/IP 连接:

adb tcpip 5555

# 查看手机内网连接信息 
adb shell ip -f inet addr show wlan0

# 连接
adb connect 192.168.31.140:5555 

# 断开连接
adb connect 192.168.31.140:5555 
上一篇 下一篇

猜你喜欢

热点阅读