If the data cable is lost and you don't want to spend any money to buy it, you can check it online. Android phones can actually use wifi.ProgramDebugging, too good. I did it myself. Although I wrote a lot of details on the Internet, there are still some problems. I will record them and refer to them next time.
1. First, let the Android phone listen to the specified port:
This step requires the use of shell, so there must be a terminal simulator on the mobile phone, but there are a lot of online, just find one, in turn into the following lines:
1
Su
// Obtain the root permission
2
Setprop service. ADB. tcp. Port
5555
// Set the listening port, which can be customized. For example, 5554,5555 is the default port.
3
Stop adbd
// Disable adbd
4
Start adbd
// Restart adbd
2. Connect the phone to WiFi and ensure that the phone and the computer are connected to the same network. Write down the IP address of the phone, which is assumed to be a. B. C. D.
3. Open a command prompt on your computer and enter the following command:
1
ADB Connect A. B. C. d
// If you do not enter the port number, the default value is 5555. The custom port number must be specified, corresponding to the custom port number in step 1, for example, A. B. C. D: 1st.
4. After the configuration is successful, the command line displays "connected to A. B. C. D", and then you can debug the program, ^ _ ^.
To disable WiFi debugging, you only need to set the port number to-1 and repeat the first step.
Original article: http://www.cnblogs.com/sunzhenxing19860608/archive/2011/07/14/2106492.html