adb wireless connection to android mobile phone for debugging without root permission

Use adb wireless connection to Android mobile phone for debugging without obtaining root permission.
To use wireless debugging, there are two necessary conditions.

1. The mobile phone and our computer must be on the same network, that is, the IP address between the two devices can be connected.

2. Installed adb, as android developers should know that its path is in the platform-tools folder under SDK, of course, you can also download adb separately. With the above two conditions, let's talk about how to implement wireless connection debugging our application.

Method (convenient and easy to apply to almost all devices)
1. First connect our mobile phone to the computer.
2. In the command line, cd to the path of adb.exe under our sdk to find our adb command input, enter adb devices to view the device we connected

3. Use adb tcpip 8888 to set the port number, 5555 is the default port number, you can also set other port numbers, the port number needs to be 4 digits

4. Unplug our device and start wireless connection adb connect
using adb connect 192.168.1.39:8888, 192.168.1.39 is the IP address of our mobile phone, where 8888 is the port number we set ourselves, this port number should be set with adb tcpip The port number remains the same. If we do n’t set the port number ourselves, just adb connect 192.168.1.39. The default is 5555 Tips for successful connection

To cancel the connection is adb disconnect
adb disconnect 192.168.1.39:8888 

Guess you like

Origin www.cnblogs.com/mrt-yyy/p/12716057.html