Android Studio uses the adb wifi plug-in to implement real-machine wireless debugging and androidadb

Source: Internet
Author: User

Android Studio uses the adb wifi plug-in to implement real-machine wireless debugging and androidadb

It is always used as a simulator, and the garbage memory of a small version is unbearable. At the same time, most of the simulator versions are stopped at 4.4, which cannot reflect the features of Android 5.0 and 6.0, therefore, we decided to use the Android Studio plug-in for wireless debugging on the real machine.

The procedure is as follows:

1. Enable USB debugging mode on the mobile phone: connect the mobile phone to the computer through the USB data cable and enable USB debugging. The steps are as follows: (take MEIZU PRO6, flyme5.2.3.0A as an example)

Connect your phone to your computer ---> Settings ---> auxiliary functions ---> developer options ---> USB debugging (enable this option)

2. Install adb wifi plug-in: open settings ---> Plugins in Android Studio, search for and add adb wifi, and restart Android Studio to install the plug-in;

3. Set the development and debugging mode to USB Device.

<1> On the Android Studio page, click app ---> Edit events... (as shown in ),

<2> after performing the preceding steps, go to the Run/Debug deployments page and set Target to USB Device;

4. Enable unlimited debugging: Make sure that the USB debugging mode is enabled on the mobile phone, connect it to the computer using the data cable, and click adb usb to WIFI (as shown in ),

If the status bar in the lower left corner of your Android Studio is similar to that in the red box, you can unplug the data cable for debugging.

5. If Android Studio is enabled again next time, perform Step 1 again.

 

 

Limited by my ability, the above content will inevitably have flaws and omissions. You are welcome to provide valuable comments or suggestions in the comment area.

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.