Wireless debugging in Android 11 - Beyond Coding ! |
Android 11 developer preview came with lots of new and amazing features focusing on 5G integration, scoped storage, improved privacy and security, and more. One of my personal favorite feature is Wireless debugging. It is a new method for deploying and debugging your app wirelessly from your workstation.
Requirements :
- A device running with Android 11.
- SDK platform-tools with version ≥ 30.0.0.
- Same Wi-Fi network for Android device and your PC.
Wireless debugging :
Android 11 supports deploying and debugging your app wirelessly from your workstation via Android Debug Bridge (adb). For example, you can deploy your debuggable app to multiple remote devices without physically connecting your device via USB and contending with common USB connection issues, such as driver installation.
To use wireless debugging, you need to pair your device to your workstation using a pairing code. Your workstation and device must be connected to the same wireless network. To connect to your device, follow these steps :
Steps to pair :
-Go to the device Settings > Developer Options > Enable Wireless debugging
-Select Pair device with pairing code. (Currently, there are two options to pair it with your computer. Using a QR code or pairing a device using a six-digit code.)
- On your workstation, update to the latest version of the SDK Platform-Tools.
- On the device, enable developer options.
- Enable the Wireless debugging option.
- On the dialog that asks to Allow wireless debugging on this network ?, click Allow.
- Select Pair device with pairing code. Take note of the pairing code, IP address, and port number displayed on the device (see image).
- On your workstation, open a terminal and navigate to
android_sdk/platform-tools.
- Run
Use the IP address and port number from step 5.adb pair ipaddr:port.
- When prompted, enter the pairing code that you received in step 5. A message should indicate that your device has been successfully paired.
- (For Linux or Microsoft Windows only) Run
Use the IP address and port under Wireless debugging (see image below).adb connect ipaddr:port.
Enter pairing code: 568200
Successfully paired to 192.168.1.159:65922 [guid=adb-843XY]
So in this way you can Wirelessly Debugg In Android 11 !
Comments
Post a Comment