Transferred from: Http://www.cnblogs.com/Androider123/p/3848415.html?utm_source=tuicool
Develop Android program, always need Plug and unplug, USB port is broken, now ADB can be wireless network, link in the same LAN under the Android device
1. Link computers and mobile devices to the same wireless network
2. Install "ADB wireless" on Android device
3. Open the "ADB wireless" installed on your mobile device, press the button, turn green, and display a line of prompt text
4, open the terminal on the computer, enter the hint of the text, display connected to 192.168.2.170:5555, indicating that the link is successful
5. Enter the ADB devices display link to the device
The configuration for using the Wireless debug Android app is over.
Problems encountered
My own configuration process encountered a problem with the device is not authorized, but the device will not pop up let me authorize the prompt box, and finally found the following solution
1, install "HyperTerminal" on the mobile device to enter the following command
"Rm/data/misc/adb/adb_key";
2, on the computer into the user directory, copy adbkey.pub to the desktop, and through Bluetooth or other means to copy files to the mobile device/mnt/sdcard/directory
CP ~/.android/adbkey.pub ~/desktop/
3, open the terminal on the mobile device, execute the following command
"Stop adbd";
4, enter the/mnt/sdcard/directory, execute the following command
"Cat adbkey.pub >>/data/misc/adb/adb_keys";
5. Then execute the following command
"Start adbd".
Down in adb kill-server, adb start-server, ADB devices See if the connection is successful
Note: Adbwireless can be found on the Internet, before using it, the phone needs root, I use the MI2A mobile phone, need to be online first MI2A development version of the card brush package, follow the tutorial brush machine, bag to find the brush machine is relatively simple
Use of Android via ADB Wireless