Do not use data cable, connect to adb (wifi adb)

When debugging the device, the only usb port is switched to otg function, but I want to use adb to capture logs, so...

Ensure that the PC and the device are in the same local area network or connected under the same wifi

1. Perform the following when connecting the data cable: adb tcpip 5555

2. Unplug the usb line to execute: adb connect device IP address

3. After the connection is successful, adb devices can see the device name, and then you can use adb to operate the device normally

However, this method still requires a short-term use of a data cable, and it is not clear for the time being that it is completely unnecessary, and needs to be added.

Guess you like

Origin blog.csdn.net/weixin_41486477/article/details/109513983