adb 网络调试

来源:互联网 发布:日本代购赚钱吗 知乎 编辑:程序博客网 时间:2024/05/16 03:19

设备端

$ stop adbd

$ setprop service.adb.tcp.port 5555

$ start adbd

使用busybox查看下网络端口的监听情况

/ # /busybox netstat -l

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 127.0.0.1:5037 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:5555 0.0.0.0:* LISTEN

有在监听了,下面就在PC机上连接下即可:

PC端

先杀死服务,以防万一

# sudo adb kill-server

# adb connect 192.168.2.231:5555

connected to 192.168.2.231:5555

下面操作就跟USB调试没有什么两样了~~~

原创粉丝点击