ADB debug Android app via WiFi connection phone

Source: Internet
Author: User

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
    1. ADB over network without previous USB pairing
    2. On the public key authentication mechanism of ADB

ADB debug Android app via WiFi connection phone

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.