首先要保证手机和电脑在一个局域网上
然后查看手机的ip,通过wifi网络详情查看ip:10.10.200.39
然后在电脑终端
adb tcpip 8888(这个数随便定义)
然后在adb connect 10.10.200.39:8888
提示connected证明成功
接下来就可以打印日志了
fuying@zhy:~/8.0/8953_3010009$ adb tcpip 8888
restarting in TCP mode port: 8888
fuying@zhy:~/8.0/8953_3010009$ adb connect 10.10.200.39:8888
connected to 10.10.200.39:8888
adb logcat|findstr "com.puyi.browser" >E:\screen\"%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%.log"
标签:8888,logcat,2%,adb,time,10.10,android,无线,200.39 From: https://www.cnblogs.com/ai594ai/p/16722945.html