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.