adb connect via wifi

Some performance problems can only be reproduced when the USB is not connected, so we can't connect to adb via USB to capture logs.

We can connect adb and mobile phone via WIFI. The connection method is as follows:

1. Both PC and mobile phone are connected to the same WIFI hotspot

2. Connect via usb, adb shell ifconfig,

   adb root

   adb remount

   Maybe some phones need 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. Disconnect the USB connection. At this point, it should be possible to connect to the mobile phone via adb (WIFI).

Guess you like

Origin blog.csdn.net/baidu_40808339/article/details/108290219