There is a millet 2A in the hand because the USB port is damaged, can not use the USB cable debugging development, see online said can use WiFi connection debugging, record the method and encountered problems.
The first step
Mobile phone installation WiFi ADB
: Https://play.google.com/store/apps/details?id=com.ttxapps.wifiadb&
Step Two
Perform on the computer
adb connect 172.27.35.2 //IP替换为手机WiFi ADB显示的IP
Use
adb devices
Check for success, if present, unauthorized
refer to below.
Step Three
Then you can debug your Android app just like USB debugging.
Solution to unauthorized problem when ADB connects Android 4.2.2 version of mobile phone
Beginning in August 2012, ADB increased the public key authentication mechanism, allowing only authorized hosts to use the USB debug interface.
Under normal circumstances, as long as the phone with a USB cable and unauthorized host, pop-up message box on the phone, ask whether to allow (or permanently allow) the host to use the USB debugging interface, OK, then use WiFi connection is no problem. However, my 2A tail plug is disabled, after consulting the data, as long as the host public key is written to the phone's Adb_keys file is equivalent to complete the authorization of the host.
Copy the contents of the file on the development host $HOME/.android/adbkey.pub
and add it to the mobile /data/misc/adb/adb_keys
file, each key line. It is recommended to use the RE file manager to modify your phone files.
Reference
- ADB over network without previous USB pairing
- On the public key authentication mechanism of ADB
ADB debug Android app via WiFi connection phone