| **Note:** Android Device Streaming is only available in the latest stable channel version of Android Studio and major versions (including their patches) released in the previous 10 months. If you are using an older version of Android Studio, you will need to update to access Cloud services. For more information, see [Android Studio and Cloud services compatibility](https://developer.android.com/studio/releases#service-compat).

Android Device Streaming, powered by Firebase, lets you securely connect to
remote physical Android devices hosted in Google's secure data centers and
Android Partner Device Labs. It's the fastest and easiest way to test your app
against physical units of some of the latest Android devices, including the Google
Pixel 9, 9a 9 Pro, Pixel Fold, and a diverse set of models from Samsung, OPPO,
OnePlus, Xiaomi, and vivo.
![Animation of using Device Streaming in Android Studio.](https://developer.android.com/static/studio/releases/assistant/2023.3.1/device-streaming.gif)

Currently, **device streaming is available to you to try at no cost** with Firebase
projects on a Spark plan. Usage beyond the monthly no cost
minutes may incur billing. See [Pricing for Android Device Streaming](https://firebase.google.com/docs/test-lab/usage-quotas-pricing#device-streaming) for
more information.

After connecting to a device, you can deploy your app, view the display,
interact with the device (including rotating or unfolding the device), and
anything else you might do with a device using an ADB over SSL
connection---all without leaving Android Studio. When you're done using the
device, Google wipes all your data and factory resets the device before making
it available to another developer.
| **Now available:** The following devices are now available from Android Device Streaming:
|
| - Google Pixel 9a
| - Google Pixel 9
| - Google Pixel 9 Pro
| - Google Pixel 9 Pro XL
| - Google Pixel 9 Pro Fold
| - Select devices from Samsung, Xiaomi, OPPO, OnePlus, and vivo Android Partner Device Labs
| **Note:** Android Device Streaming is only available in the current stable channel version of Android Studio, the three most recent previous major versions, and patches associated with those versions. If you are using an older version of Android Studio, you will need to update to use Android Device Streaming. [More
| information](https://developer.android.com/studio/releases#service-compat).

## Get started

To get started, follow these steps:

1. If you haven't already done so, download and install the latest version of [Android Studio](https://developer.android.com/studio). If you'd like early access to unreleased features, download and install the [latest Canary release](https://developer.android.com/studio/preview).
2. Open an Android Studio project.
3. Navigate to **View \> Tool Windows \> Device Manager** and click the Firebase button near the top of the window.
4. If you're not already signed in to your developer account, click **Log in to
   Google** and follow the prompts. After authorizing Android Studio to access Firebase, return to the IDE.
5. Select a Firebase project. You can also see the amount of quota you have remaining or minutes used for current billing cycle.
   - If you don't have a Firebase project, you can create one at no cost in the [Firebase Console](https://console.firebase.google.com/). Keep in mind, there might be a small delay between creating a new project and having it be selectable from Android Studio.
   - If you get an error that you lack the proper permissions to use device streaming with the selected project, follow the [instructions to enable
     permissions](https://developer.android.com/studio/run/android-device-streaming#permissions).
6. Click **Confirm**.

A default set of devices should appear automatically in the Device Manager
for you to use. You can connect to a device by either clicking **Start** action
next to a device, or by selecting a device from the deploy target drop-down in
the main toolbar and deploying your app, like you normally would.

After Android Studio reserves and connects to the device you requested, the
**Running Devices** window will appear. To extend a session, click the **Extend
Reservation** button from the **Running Devices** window toolbar and select the
duration you want to extend your session by.

### Enable permissions

To use device streaming, you need to use a Firebase project for which you have
either **Editor** or **Owner** permissions.

If you don't have these permissions
for your existing Firebase projects, you can either create a new one as an Owner
at no cost in the [Firebase Console](https://console.firebase.google.com), or
ask someone on your team who does to follow these steps:

1. Navigate to the IAM section of the [Google Cloud Console](https://console.cloud.google.com/iam-admin).
2. Click **View by principles \> Grant access**.
3. Add the user IDs for each user you want to be able to access device streaming.
4. Using the **Select a role** drop-down, select the **Firebase Test Lab Direct
   Access Admin** role.
5. Click **Add another role** and select **Service Usage Consumer** from the **Select a role** drop-down.
6. Save the changes by clicking **Save**

### Try the full catalog of devices

To browse additional devices and add them to the Device Manager, do the
following:

1. From the Device Manager, click **+ \> Select Remote Device**.
2. In the catalog that appears, you can select the devices you want by checking the box next to each one.   

   ![](https://developer.android.com/static/studio/images/device-streaming-configure.png)
3. Click **Confirm**. The device(s) you selected should now appear in the Device Manager.

### End your session

When you're done using a device, remember to click **Return and Erase Device**
either from the overflow menu for the device in the Device Manager or from the
notification that appears after closing the device tab in the Running Devices
window. This ensures that you don't spend device minutes unnecessarily, and your
device is immediately wiped and factory reset after before it is made available
to another developer. Any unused minutes from your session are returned to your
project.

## Connect to Android Partner Device Labs

Android Partner Device Labs are device labs operated by Google OEM partners,
such as Samsung, Xiaomi, OPPO, OnePlus, vivo and others, and expand the
selection of devices available in Android Device Streaming. This service
is available in the Stable channel, starting with Android Studio Narwhal
Feature Drop.

To get started, do the following:

1. In the Device Manager, click **+ \> Select Remote Devices**.
2. In the device catalog that appears, select a device from an Android Partner Device Lab that you'd like to use. Devices from partner labs are denoted by their device icon and the "Lab" column in the catalog. **Device Lab** filters help you filter for devices from one only or more device labs.   

   ![](https://developer.android.com/static/studio/images/pdl-catalog.png)
3. Click **Confirm**.
4. From the Device Manager, you can connect to the partner lab device like you would any other Android Device Streaming device.

| **Note:** Standard [pricing for Android Device Streaming](https://firebase.google.com/docs/test-lab/usage-quotas-pricing#device-streaming) applies for all Android Partner Device Lab devices, unless specified.

### Enable Partner Device Labs in Google Cloud Console

If the required partner lab is not enabled for your selected Firebase project
Android Studio will notify you, and you can follow the prompts to enable the
selected partner labs.


<br />


![](https://developer.android.com/static/studio/images/pdl-enable.png)

An Editor or Owner of the project is required to enable
each partner lab on the [Partner Device Labs](https://console.cloud.google.com/omnilab/partner-lab) page in Google Cloud Console.
Here's how to enable a partner lab:

1. Check to make sure that the correct Google Cloud project is selected at the top of the page.
2. Click the toggle for the device lab you want to enable and follow the prompts.
3. After the partner lab is enabled, you and your team can use the devices in Android Studio.

## Pricing for Android Device Streaming

For more information, see [Firebase usage levels, quotas, and pricing](https://firebase.google.com/docs/test-lab/usage-quotas-pricing#device-streaming).

## Frequently asked questions

### What makes Android Device Streaming, powered by Firebase, different?

Devices, security, and features. Android Device Streaming is where
you can expect to have access to some of the latest Android devices as quickly
as possible. Additionally, the service supports a select number of older
devices, so that you have access to a wide range of configurations and API
levels. And because these devices are housed in secure data centers,
your sessions are secure and your devices are factory reset and wiped before
they are made available to another user.

Finally, the service is integrated directly with Android Studio and accessible
over an ADB over SSL connection, so the tools you use every day over ADB work
seamlessly with device streaming.

### How much does the service cost?

For pricing details, see [Pricing for Android Device Streaming](https://firebase.google.com/docs/test-lab/usage-quotas-pricing#device-streaming).

### Is my session secure and what happens when my session ends?

Each device is located in Google's secure data centers and connects to your
workstation using an ADB over SSL connection. When your session ends, device
data is fully wiped and factory reset before the device is made
available to another developer.

### Do I need to use Android Studio?

While Android Studio Jellyfish or later is required to connect to the service
and request a device, the direct ADB over SSL connection lets you use any tools
or IDEs that use ADB to communicate with test devices after you reserve and
connect to a device.