Android - connect to mobile phone via wifi for debugging

1. Under what circumstances is it suitable for wifi debugging

  • The data line is unstable
  • Stable wifi
    It is necessary to ensure the stability of the wifi environment, and the mobile phone and computer are under the same wifi. If the wifi is down, the connection is lost
  • Some devices cannot be debugged by USB cable, and the connection pop-up window will always flash.

2. How to enable wifi debugging

  • Android 11+
  • Device: Turn on the developer mode, pair the device with the partner, and a 6-digit verification code will be generated

  • Click on Android Studio Pair using Wi-Fior the device drop-down icon in the upper left corner will appear. Pair Devices using Wi-Fi
    insert image description here
    Select Pair using pairing code
    insert image description here

Guess you like

Origin blog.csdn.net/Android_yh/article/details/129775257