android 无线ADB调试

首先手机与电脑处于同一wifi下

先用usb将手机与电脑连接,打开调试,调试成功

假设手机ip地址为192.168.0.181

 方法1
adb shell setprop service.adb.tcp.port 5555    //打开手机的5555端口
adb connect 192.168.0.181

完成连接

方法2

adb tcpip 5555

adb connect 192.168.0.181

完成连接

附:

USB调试模式与WIFI调试模式切换 
adb usb 切换到USB模式 
adb tcpip 5555 切换到WIFI无线调试

WIFI 无线调试下 连接与断开连接的指令 
adb connect 192.168.0.181 连接设备 
adb disconnect 192.168.0.181 断开设备连接

猜你喜欢

转载自blog.csdn.net/qq_39773343/article/details/81114938