android adb通过wifi查看日志
1、电脑和android手机通过wifi连接到同一个无线网络,确保两者能够相互ping通(注意防火墙、网络设置等),同时查看设备的IP2、在android设备上下载超级终端,设置端口: su setprop service.adb.tcp.port 5555 exit3、用数据线连接设备,在电脑cmd窗口输入 adb tcpip 5555
·
1、电脑和android手机通过wifi连接到同一个无线网络,确保两者能够相互ping通(注意防火墙、网络设置等),同时查看设备的IP
2、在android设备上下载超级终端,设置端口:
su
setprop service.adb.tcp.port 5555
exit
3、用数据线连接设备,在电脑cmd窗口输入 adb tcpip 5555 //restarts the adbd daemon listening on TCP on the specified port..5555
4、cmd窗口输入adb connect xx.xx.xx.xx(设备IP) //adb connect <host>[:<port>] connect to device via TCP/IP Port 5555 is used by default if no port number is specified
此时,可以断开数据线了,在logcat界面能够看到输出
5、cmd窗口输入adb disconnect xx.xx.xx.xx(设备IP) //用法类似adb connect,表示断开TCP连接
更多推荐



所有评论(0)