@ -298,6 +299,38 @@ Developer Options 2. Android devices and USB debugging mode is on.
Description Connection successful.
Description Connection successful.
### Wireless connection (Android11+)
[Doc in Android developers](https://developer.android.com/studio/command-line/adb#connect-to-a-device-over-wi-fi-android-11+)
Android 11 and higher support deploying and debugging your app wirelessly from your workstation using Android Debug Bridge (adb). For example, you can deploy your debuggable app to multiple remote devices without physically connecting your device via USB. This eliminates the need to deal 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:
1. Update to the latest version of the [SDK Platform-Tools](https://developer.android.com/studio/releases/platform-tools).
2. Connect Android device to run adb computer connected to the same local area network, such as connected to the same WiFi.
3. Enable the **Wireless debugging** option.
4. On the dialog that asks **Allow wireless debugging on this network?**, click **Allow**.
5. Select **Pair device with pairing code**. Take note of the pairing code, IP address, and port number displayed on the device.
6. On your workstation, open a terminal and navigate to `android_sdk/platform-tools`.
7. Run `adb pair ipaddr:port`. Use the IP address and port number from step 5.
8. When prompted, enter the pairing code that you received in step 5. A message indicates that your device has been successfully paired.
```sh
none
Enter pairing code: xxxxxx
Successfully paired to ...
```
9. (For Linux or Microsoft Windows only) Run `adb connect ipaddr:port`. Use the IP address and port under **Wireless debugging**.
### Wireless connection (need to use the USB cable)
### Wireless connection (need to use the USB cable)
In addition to the USB connection to the computer to use adb, can also be a wireless connection - although the connection process is also step using USB needs, but after a successful connection to your device can get rid of the limit of the USB cable within a certain range it !
In addition to the USB connection to the computer to use adb, can also be a wireless connection - although the connection process is also step using USB needs, but after a successful connection to your device can get rid of the limit of the USB cable within a certain range it !