ADB (Android Debug Bridge) Wireless Debugging allows developers to connect and debug their Android device over a Wi-Fi network instead of using a physical USB cable. Here's how you can set it up for convenient development:
-
Initial Setup with USB:
- Connect your Android device to your computer via USB.
- Open a terminal or command prompt on your computer.
- Type
adb devicesto ensure the device is detected by ADB.
-
Enable Wireless Debugging on Device:
- On your Android device, go to
Settings. - Tap on
About phoneand findBuild number. - Tap
Build numberseven times to enable Developer Options. - Go back to
Settings, find and enterDeveloper Options. - Scroll down to enable
Wireless debugging(for devices running Android 11 and above).
- On your Android device, go to
-
Connect via Wireless:
- In the same
Developer Optionsmenu, tap onWireless debuggingto enter its settings. - Tap on
Pair device with pairing code. - On your computer, disconnect the USB connection and run the following command, replacing the IP_ADDRESS and PORT with the information shown on your device's screen:
adb connect IP_ADDRESS:PORT
- In the same
-
Verify Connection:
- Type
adb deviceson your computer again to verify that your device is listed and connected wirelessly.
- Type
-
Keep Device Awake:
- Within Developer Options on your device, enable
Stay awaketo prevent the screen from turning off while debugging.
- Within Developer Options on your device, enable
-
Development and Debugging:
- You can now use ADB commands, deploy apps, and debug your application wirelessly using Android Studio or via command-line.
By following these steps, you can enjoy the convenience of debugging your Android applications without the need for physical USB connections.


