Make sure the phone and PC are in the same network segment.
1. Connect the mobile phone to the computer with a USB cable
2. Then execute
adb root on the mobile phone
and use the adb shell to log in to the mobile phone, and execute the following command:
setprop service.adb.tcp.port 5555
stop adbd && start adbd &
3. Then Execute the following command on the PC:
adb tcpip 5555
adb connect 192.168.*.* :5555
4. Unplug the USB cable and find that you can use adb logcat to capture the
log
1. Connect the mobile phone to the computer with a USB cable
2. Then execute
adb root on the mobile phone
and use the adb shell to log in to the mobile phone, and execute the following command:
setprop service.adb.tcp.port 5555
stop adbd && start adbd &
3. Then Execute the following command on the PC:
adb tcpip 5555
adb connect 192.168.*.* :5555
4. Unplug the USB cable and find that you can use adb logcat to capture the
log