Android Device Wireless Debugging - RAD Studio (2024)

Go Up to Running and Debugging Your Android Application On a Remote Android Device


You can run or debug an Android application directly to a real Android device using Wireless Network. This way you don't have to connect your device to a USB port all the time. This is specially useful and easier when developing on a Virtual Machine.


To enable wireless debugging, you must make sure your device is connected to the same network with your computer, and can connect each other.

Android Device Wireless Debugging - RAD Studio (1)

Steps to pair below Android 11

  1. For an Android device prior to Android 11 version, you must first pair the device using USB connection.

    Note: To enable USB Debugging on Android, please see: Enable USB debugging on your Android device.

  2. After successfully enable USB Debugging for your Android device, perform these steps from your Android SDK platform-tools folder to pair the device:
    adb tcpip 5555
    adb connect 192.168.1.10:5555

    Note: Replace 192.168.1.10 with your device IP address.

  3. Use this command to make sure your device is connected successfully:
    adb devices

    Note: It will show your device IP address and Port with the connection state. It should be showing device if connected.

  4. You can unplug the USB connection

Steps to pair Android 11 and above

As of Android 11 version, you can directly pair an Android device over a wireless network without using USB connection. Before you can pair the device, you need to make sure a few things as the requirement:

  1. Android device running Android 11 or newer
  2. SDK Platform-Tools version 30.0.0 or newer

On your Android device:

  1. Go to Device Settings | Developer Options
  2. Find the Wireless Debugging option
  3. Set to enable, it will show a confirmation dialog to allow debugging on current wireless network, click allow to enable it
  4. Click the Wireless Debugging option, this will bring Wireless Debugging Configuration
  5. Click Pair Device with pairing code, this will show a wifi Pairing Code with device ip address and port to be used by the pc to pair

On your computer:

  1. open the Android SDK platform-tools folder
  2. Run this command:
    adb pair 192.168.1.10:47539

    Note: Replace 192.168.1.10 with your device IP address and 47539 with your device port as mentioned in step 5 above. You will be prompted for a Pairing Code, enter the Pairing Code mentioned in the step 5 above.

    adb connect 192.168.1.10:47539

    Note: Replace 192.168.1.10 with your device IP address and 47539 with your device port as mention in step 5 above.

  3. Use this command to make sure your device is connected successfully:
    adb devices

    Note: It will show your device IP address and Port with the connection state. It should be showing device if connected.

After you successfully connected the device, you can see the list of your connected device in the Delphi IDE Android Device List, then you can directly run or debug your project to the device from the IDE.

See Also

Android Device Wireless Debugging - RAD Studio (2024)

FAQs

How to debug wireless in Android Studio? ›

To connect to your device, follow these steps:
  1. Enable developer options on your device.
  2. Open Android Studio and select Pair Devices Using Wi-Fi from the run configurations menu. ...
  3. On your device, tap Wireless debugging and pair your device: ...
  4. After your device is paired, you can attempt to deploy your app to your device.
Feb 9, 2024

How do I fix wireless debugging not working? ›

On your Android device: Go to Device Settings | Developer Options. Find the Wireless Debugging option. Set to enable, it will show a confirmation dialog to allow debugging on current wireless network, click allow to enable it.

Is Android wireless debugging safe? ›

Enabling USB debugging makes it possible to transfer software from a PC to your phone via a wired connection, but you still must approve the connection. The same is true of wireless debugging. In either case, an attacker needs physical access to your device, or an app needs to trick you into approving the connection.

How do I remotely debug an Android device? ›

Remote debugging on Android devices
  1. Step 1 – Open developer options. On your Android device open up the Settings menu and select Developer options. ...
  2. Step 2 – USB debugging. Now open the Developer options menu and select the option for USB debugging. ...
  3. Step 3 – Configure Chrome to inspect the DOM. ...
  4. Step 4 – Start debugging.

How do I debug my wireless connection? ›

The first step to debug a wireless network is to check the basic elements that are involved in the connection, such as the power supply, the cables, the router, the wireless adapter, and the device settings. Make sure that everything is plugged in, turned on, and configured correctly.

Which Android version has wireless debugging? ›

There is an option to wirelessly debug an app, but this feature is only available for Android phones running Android version 10 or higher. Unfortunately, it is not possible to enable WiFi debugging on Android 10 or earlier versions.

What is wireless debugging on Android phone? ›

Wirelessly debug your Android phone! The Android Debug Bridge (ADB) lets you debug your Android device, sideload apps, install custom ROMs, and remove bloatware. It's also used for entering Android's recovery mode if you can't access the recovery menu through your Android device.

What is wireless debugging in developer mode? ›

"WiFi wireless debug" refers to a feature or capability available on some devices or software tools that enables wireless debugging of applications or systems over a WiFi network. It allows developers or administrators to troubleshoot and debug software or hardware remotely without the need for physical connections.

Should I have ADB debugging on or off? ›

USB Debugging allows a computer, when set as trusted, to run commands on your phone using the Android Debug Bridge (ADB). This should not be enabled unless you are using it.

Should I keep ADB debugging on or off? ›

Wear OS has WiFi only on demand when at all possible it uses the mobile WiFi. Leaving ADB Debugging on keeps the WiFi on constantly and I've noticed and others have confirmed it can use about 50% more battery in a day on Watch4. Be sure to turn ADB Debugging off when not using it.

What must the Android device user do on the device to enable debug mode? ›

Enabling USB Debugging on an Android Device
  1. On the device, go to Settings > About <device>.
  2. Tap the Build number seven times to make Settings > Developer options available.
  3. Then enable the USB Debugging option.

What is WiFi wireless debugging? ›

"WiFi wireless debug" refers to a feature or capability available on some devices or software tools that enables wireless debugging of applications or systems over a WiFi network. It allows developers or administrators to troubleshoot and debug software or hardware remotely without the need for physical connections.

How do I debug wireless in Visual Studio? ›

- Go to Settings>Developer Options>Wireless Debugging>Connect With Pairing Code. - In vscode press ctrl+shift+p and run ADB Qr: Connect With Pairing Code - Wait for device Scanning. - Select your device from the list. - Enter the pairing code shown on your phone.

Top Articles
Latest Posts
Article information

Author: Barbera Armstrong

Last Updated:

Views: 5876

Rating: 4.9 / 5 (79 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Barbera Armstrong

Birthday: 1992-09-12

Address: Suite 993 99852 Daugherty Causeway, Ritchiehaven, VT 49630

Phone: +5026838435397

Job: National Engineer

Hobby: Listening to music, Board games, Photography, Ice skating, LARPing, Kite flying, Rugby

Introduction: My name is Barbera Armstrong, I am a lovely, delightful, cooperative, funny, enchanting, vivacious, tender person who loves writing and wants to share my knowledge and understanding with you.