Connect to Devices on Remote Test Lab Using RDB in Android Studio

Remote Debug Bridge

RTL Support

Last year, we released the latest version of Remote Test Lab that supports the new web-based client and provides a user experience comparable with a real device.

Today, we are happy to introduce a new feature, Remote Debug Bridge, that allows application developers to test and debug applications easily by creating an Android Debug Bridge (adb) connection to a real device on the Remote Test Lab in Android Studio.

What is Remote Debug Bridge?

Remote Debug Bridge (rdb) allows developers to use an Android device provided by the Remote Test Lab service in Android Studio.
If you connect rdb with the web-based Remote Test Lab client, you can see our remote devices in the Android Device Manager and can have the same experience as a physical device connected to your host PC.

Figure 1. web-based client with Android Studio

Reserve Android device on Remote Test Lab

To use a remote device, first go to Remote Test Lab.

Remote Test Lab provides over 1500 different devices, ranging from mobile devices, including the latest foldable models, to the newest smart watches.

To use an Android device, click "Galaxy Mobile" on Remote Test Lab and then select one of the devices.

Figure 2. Reserve a device

For more information on how to use Remote Test Lab, refer back the previous post:
Test Your Apps in Multiple Regions with the New Web-Based Remote Test Lab

Run Remote Debug Bridge application

To run rdb, adb is also required.
If you have not installed adb already, you must install it first.

To download the rdb application:

  1. Launch the Remote Test Lab web-based client and click "Remote Debug Bridge" on the navigation menu.

  2. Click "Connect" on the menu pop-up.
    If the rdb application is not running on your host PC, the download pop-up is shown.
    If you have already downloaded the file, you don't have to download it again and can move directly to the Connect Remote Device section.

  3. Click the "Download" link on the pop-up to download the application to your host PC as a ZIP file.
    Figure 3. WebClient rdb pop-up

  4. Install the rdb application.

    The installation procedure differs slightly depending on your operating system:

    Windows

    1. Double-Click on the downloaded ZIP file to unzip it.
    2. Click on "rdb.exe" to run the application. You can see a command window running "rdb."

    macOS

    1. Double-Click on the downloaded ZIP file to unzip it.
    2. Click on "rdb" to run the application. You can see a command window running "rdb."

    Linux

    1. Open a terminal and move to the download directory.
    2. Unzip the file:
      $ unzip rdb.zip
      
    3. Run "rdb" on the terminal:
      $ ./rdb
      

Connect remote device

To connect a remote device to your host PC:

  1. Click the "Connect" button on the "Remote Debug Bridge" menu pop-up.
    The text on the menu pop-up is changed to "Disconnect" when the connection between the device and your host PC is established.
  2. If the web-based client shows an RSA dialog on the screen preview, click the "Allow" button.

Figure 4. Web Client RSA dialog

Now you are ready to use the device provided by Remote Test Lab.

Use device in Android Studio

When the connection between the device and your host PC is established, Android Studio shows the device name on the running devices list box. The device is also shown on the "Physical" tab on the Device Manager.

Figure 5. Android Device Manager

Once the device is connected, you can also run adb commands in the command window or terminal.

Figure 6. ADB running on the command line

If you have any feedback about how we can improve our service, send us a Support Request.

Preferences Submitted

You have successfully updated your cookie preferences.