adb 通过wifi连接

有些性能问题只有在不连接USB的时候才能重现,这样我们就不能通过USB连接 adb 抓取log。

我们可以通过WIFI将 adb 和手机连接起来。其连接方法如下:

1,PC和手机都连上同一个WIFI热点

2,通过usb连接,adb shell ifconfig ,

   adb root

   adb remount

   可能有些手机需要adb disable-verity,adb reboot

   adb root

   adb remount

   adb shell ifconfig:192.168.1.214

 

3, adb tcpip 5555

4, adb connect 192.168.1.214

5, 断开USB连接。此时应该可以通过adb(WIFI)连接上手机。

猜你喜欢

转载自blog.csdn.net/baidu_40808339/article/details/108290219