android adb通过wifi查看日志

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连接



  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值