پخش جریانی دستگاه Android، پشتیبانی شده توسط Firebase
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Android Device Streaming که توسط Firebase پشتیبانی میشود، به شما امکان میدهد به طور ایمن به دستگاههای فیزیکی Android از راه دور که در مراکز داده امن Google و آزمایشگاههای دستگاه شریک Android میزبانی میشوند، متصل شوید. این سریعترین و سادهترین راه برای آزمایش برنامه شما در برابر واحدهای فیزیکی برخی از جدیدترین دستگاههای اندرویدی است، از جمله Google Pixel 9، 9a 9 Pro، Pixel Fold، و مجموعهای متنوع از مدلهای Samsung، OPPO، OnePlus، Xiaomi و vivo.
در حال حاضر، پخش جریانی دستگاه در دسترس شما است تا بدون هیچ هزینه ای با پروژه های Firebase در طرح Spark امتحان کنید . استفاده فراتر از دقایق بدون هزینه ماهانه ممکن است موجب صورتحساب شود. برای اطلاعات بیشتر قیمت گذاری برای پخش جریانی دستگاه Android را ببینید.
پس از اتصال به دستگاه، میتوانید برنامه خود را اجرا کنید، نمایشگر را مشاهده کنید، با دستگاه تعامل کنید (از جمله چرخاندن یا باز کردن دستگاه)، و هر کار دیگری که ممکن است با دستگاهی با استفاده از اتصال ADB از طریق SSL انجام دهید—همه اینها بدون خروج از Android Studio. وقتی استفاده از دستگاه را تمام کردید، Google تمام دادههای شما را پاک میکند و دستگاه را قبل از در دسترس قرار دادن آن در اختیار برنامهنویس دیگری، بازنشانی کارخانهای میکند.
شروع کنید
برای شروع، مراحل زیر را دنبال کنید:
اگر قبلاً این کار را نکردهاید، آخرین نسخه Android Studio را دانلود و نصب کنید. اگر میخواهید زودتر به ویژگیهای منتشر نشده دسترسی داشته باشید، آخرین نسخه Canary را دانلود و نصب کنید.
یک پروژه Android Studio را باز کنید.
به View > Tool Windows > Device Manager بروید و روی دکمه Firebase نزدیک بالای پنجره کلیک کنید.
اگر قبلاً به حساب توسعهدهنده خود وارد نشدهاید، روی ورود به Google کلیک کنید و دستورات را دنبال کنید. پس از مجوز دادن به Android Studio برای دسترسی به Firebase، به IDE بازگردید.
یک پروژه Firebase را انتخاب کنید. همچنین میتوانید میزان سهمیه یا دقایق استفاده شده برای چرخه صورتحساب فعلی را مشاهده کنید.
اگر پروژه Firebase ندارید، می توانید بدون هیچ هزینه ای در Firebase Console ایجاد کنید. به خاطر داشته باشید، ممکن است تاخیر کمی بین ایجاد یک پروژه جدید و انتخاب آن از Android Studio وجود داشته باشد.
اگر با خطایی مواجه شدید مبنی بر اینکه مجوزهای لازم برای استفاده از پخش جریانی دستگاه با پروژه انتخابی را ندارید، دستورالعملها را برای فعال کردن مجوزها دنبال کنید.
روی تایید کلیک کنید.
یک مجموعه پیشفرض از دستگاهها باید بهطور خودکار در Device Manager ظاهر شود تا بتوانید از آن استفاده کنید. میتوانید با کلیک کردن روی Start action در کنار دستگاه یا با انتخاب یک دستگاه از منوی کشویی deploy target در نوار ابزار اصلی و استقرار برنامهتان، مانند حالت عادی، به دستگاه متصل شوید.
پس از رزرو و اتصال Android Studio به دستگاهی که درخواست کرده اید، پنجره Running Devices ظاهر می شود. برای تمدید یک جلسه، روی دکمه Extend Reservation از نوار ابزار پنجره Running Devices کلیک کنید و مدت زمانی را که می خواهید جلسه خود را تمدید کنید انتخاب کنید.
مجوزها را فعال کنید
برای استفاده از پخش جریانی دستگاه، باید از یک پروژه Firebase استفاده کنید که برای آن مجوز ویرایشگر یا مالک را دارید.
اگر این مجوزها را برای پروژههای Firebase موجود خود ندارید، میتوانید یک مجوز جدید بهعنوان مالک بدون هیچ هزینهای در کنسول Firebase ایجاد کنید، یا از فردی در تیم خود بخواهید که این مراحل را دنبال کند:
شناسههای کاربری را برای هر کاربری که میخواهید به پخش جریانی دستگاه دسترسی داشته باشد اضافه کنید.
با استفاده از منوی کشویی Select a role ، نقش مدیریت Firebase Test Lab Direct Access را انتخاب کنید.
روی افزودن نقش دیگری کلیک کنید و از منوی کشویی Select a role گزینهService Usage Consumer را انتخاب کنید.
با کلیک روی Save تغییرات را ذخیره کنید
کاتالوگ کامل دستگاه ها را امتحان کنید
برای مرور دستگاههای دیگر و افزودن آنها به مدیر دستگاه، موارد زیر را انجام دهید:
از Device Manager، روی + > Select Remote Device کلیک کنید.
در کاتالوگ ظاهر شده، می توانید با علامت زدن کادر کنار هر یک، دستگاه های مورد نظر خود را انتخاب کنید.
روی تایید کلیک کنید. دستگاه(هایی) که انتخاب کرده اید اکنون باید در Device Manager ظاهر شوند.
جلسه خود را تمام کنید
پس از اتمام کار با دستگاه، به یاد داشته باشید که از منوی سرریز دستگاه در Device Manager یا از اعلانی که پس از بستن برگه دستگاه در پنجره Running Devices ظاهر می شود، روی Return and Erase Device کلیک کنید. این تضمین میکند که دقایقی از دستگاه را بیضرر سپری نمیکنید، و دستگاه شما بلافاصله پاک میشود و قبل از اینکه در اختیار توسعهدهنده دیگری قرار گیرد، بلافاصله پاک میشود و تنظیمات کارخانه بازنشانی میشود. هر دقیقه استفاده نشده از جلسه شما به پروژه شما برگردانده می شود.
به آزمایشگاه دستگاه شریک Android متصل شوید
Android Partner Device Labs آزمایشگاههای دستگاهی هستند که توسط شرکای Google OEM مانند Samsung، Xiaomi، OPPO، OnePlus، vivo و دیگران اداره میشوند و گزینش دستگاههای موجود در Android Device Streaming را گسترش میدهند. این سرویس در کانال Stable در دسترس است و با Android Studio Narwhal Feature Drop شروع می شود.
برای شروع، موارد زیر را انجام دهید:
در Device Manager، روی + > Select Remote Devices کلیک کنید.
در کاتالوگ دستگاهی که ظاهر میشود، دستگاهی را از آزمایشگاه دستگاه شریک Android که میخواهید از آن استفاده کنید، انتخاب کنید. دستگاههای آزمایشگاههای شریک با نماد دستگاه و ستون «آزمایشگاه» در کاتالوگ مشخص میشوند. فیلترهای Device Lab به شما کمک میکنند دستگاههای تنها از یک یا چند آزمایشگاه دستگاه را فیلتر کنید.
روی تایید کلیک کنید.
از Device Manager، میتوانید مانند هر دستگاه Android Device Streaming به دستگاه آزمایشگاه شریک متصل شوید.
آزمایشگاه دستگاه شریک را در Google Cloud Console فعال کنید
اگر آزمایشگاه شریک مورد نیاز برای پروژه Firebase انتخابی شما فعال نباشد، Android Studio به شما اطلاع میدهد و میتوانید برای فعال کردن آزمایشگاههای شریک انتخابی، از دستورات پیروی کنید.
یک ویرایشگر یا مالک پروژه برای فعال کردن هر آزمایشگاه شریک در صفحه Partner Device Labs در Google Cloud Console لازم است. در اینجا نحوه فعال کردن آزمایشگاه شریک آمده است:
بررسی کنید تا مطمئن شوید که پروژه Google Cloud صحیح در بالای صفحه انتخاب شده است.
روی ضامن مربوط به آزمایشگاه دستگاهی که میخواهید فعال شود کلیک کنید و دستورات را دنبال کنید.
پس از فعال شدن آزمایشگاه شریک، شما و تیمتان میتوانید از دستگاههای موجود در Android Studio استفاده کنید.
چه چیزی استریم دستگاه Android را که توسط Firebase ارائه میشود متفاوت میکند؟
دستگاه ها، امنیت و ویژگی ها. Android Device Streaming جایی است که میتوانید انتظار داشته باشید در سریعترین زمان ممکن به برخی از جدیدترین دستگاههای Android دسترسی داشته باشید. علاوه بر این، این سرویس از تعداد معینی از دستگاههای قدیمیتر پشتیبانی میکند تا به طیف وسیعی از تنظیمات و سطوح API دسترسی داشته باشید. و از آنجایی که این دستگاهها در مراکز داده ایمن قرار دارند، جلسات شما ایمن هستند و دستگاههای شما قبل از در دسترس قرار گرفتن در اختیار کاربر دیگر، بازنشانی کارخانهای و پاک میشوند.
در نهایت، این سرویس مستقیماً با Android Studio یکپارچه شده است و از طریق اتصال ADB از طریق SSL قابل دسترسی است، بنابراین ابزارهایی که هر روز از طریق ADB استفاده میکنید بهطور یکپارچه با جریان دستگاه کار میکنند.
آیا جلسه من امن است و وقتی جلسه من به پایان می رسد چه اتفاقی می افتد؟
هر دستگاه در مراکز داده ایمن Google قرار دارد و با استفاده از اتصال ADB از طریق SSL به ایستگاه کاری شما متصل می شود. وقتی جلسه شما به پایان می رسد، اطلاعات دستگاه به طور کامل پاک می شود و قبل از اینکه دستگاه در دسترس برنامه نویس دیگری قرار گیرد، به حالت کارخانه بازنشانی می شود.
آیا باید از اندروید استودیو استفاده کنم؟
در حالی که Android Studio Jellyfish یا جدیدتر برای اتصال به سرویس و درخواست دستگاه مورد نیاز است، اتصال مستقیم ADB از طریق SSL به شما امکان میدهد از هر ابزار یا IDE که از ADB استفاده میکند برای برقراری ارتباط با دستگاههای آزمایشی پس از رزرو و اتصال به دستگاه استفاده کنید.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-08-12 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-08-12 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Android Device Streaming, powered by Firebase, lets you securely connect to\nremote physical Android devices hosted in Google's secure data centers and\nAndroid Partner Device Labs. It's the fastest and easiest way to test your app\nagainst physical units of some of the latest Android devices, including the Google\nPixel 9, 9a 9 Pro, Pixel Fold, and a diverse set of models from Samsung, OPPO,\nOnePlus, Xiaomi, and vivo.\n\nCurrently, **device streaming is available to you to try at no cost** with Firebase\nprojects on a Spark plan. Usage beyond the monthly no cost\nminutes may incur billing. See [Pricing for Android Device Streaming](https://firebase.google.com/docs/test-lab/usage-quotas-pricing#device-streaming) for\nmore information.\n\nAfter connecting to a device, you can deploy your app, view the display,\ninteract with the device (including rotating or unfolding the device), and\nanything else you might do with a device using an ADB over SSL\nconnection---all without leaving Android Studio. When you're done using the\ndevice, Google wipes all your data and factory resets the device before making\nit available to another developer.\n| **Now available:** The following devices are now available from Android Device Streaming:\n|\n| - Google Pixel 9a\n| - Google Pixel 9\n| - Google Pixel 9 Pro\n| - Google Pixel 9 Pro XL\n| - Google Pixel 9 Pro Fold\n| - Select devices from Samsung, Xiaomi, OPPO, OnePlus, and vivo Android Partner Device Labs\n| **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\n| information](/studio/releases#service-compat).\n\nGet started\n-----------\n\nTo get started, follow these steps:\n\n1. 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).\n2. Open an Android Studio project.\n3. Navigate to **View \\\u003e Tool Windows \\\u003e Device Manager** and click the Firebase button near the top of the window.\n4. If you're not already signed in to your developer account, click **Log in to\n Google** and follow the prompts. After authorizing Android Studio to access Firebase, return to the IDE.\n5. Select a Firebase project. You can also see the amount of quota you have remaining or minutes used for current billing cycle.\n - 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.\n - If you get an error that you lack the proper permissions to use device streaming with the selected project, follow the [instructions to enable\n permissions](https://developer.android.com/studio/run/android-device-streaming#permissions).\n6. Click **Confirm**.\n\nA default set of devices should appear automatically in the Device Manager\nfor you to use. You can connect to a device by either clicking **Start** action\nnext to a device, or by selecting a device from the deploy target drop-down in\nthe main toolbar and deploying your app, like you normally would.\n\nAfter Android Studio reserves and connects to the device you requested, the\n**Running Devices** window will appear. To extend a session, click the **Extend\nReservation** button from the **Running Devices** window toolbar and select the\nduration you want to extend your session by.\n\n### Enable permissions\n\nTo use device streaming, you need to use a Firebase project for which you have\neither **Editor** or **Owner** permissions.\n\nIf you don't have these permissions\nfor your existing Firebase projects, you can either create a new one as an Owner\nat no cost in the [Firebase Console](https://console.firebase.google.com), or\nask someone on your team who does to follow these steps:\n\n1. Navigate to the IAM section of the [Google Cloud Console](https://console.cloud.google.com/iam-admin).\n2. Click **View by principles \\\u003e Grant access**.\n3. Add the user IDs for each user you want to be able to access device streaming.\n4. Using the **Select a role** drop-down, select the **Firebase Test Lab Direct\n Access Admin** role.\n5. Click **Add another role** and select **Service Usage Consumer** from the **Select a role** drop-down.\n6. Save the changes by clicking **Save**\n\n### Try the full catalog of devices\n\nTo browse additional devices and add them to the Device Manager, do the\nfollowing:\n\n1. From the Device Manager, click **+ \\\u003e Select Remote Device**.\n2. In the catalog that appears, you can select the devices you want by checking the box next to each one. \n\n3. Click **Confirm**. The device(s) you selected should now appear in the Device Manager.\n\n### End your session\n\nWhen you're done using a device, remember to click **Return and Erase Device**\neither from the overflow menu for the device in the Device Manager or from the\nnotification that appears after closing the device tab in the Running Devices\nwindow. This ensures that you don't spend device minutes unnecessarily, and your\ndevice is immediately wiped and factory reset after before it is made available\nto another developer. Any unused minutes from your session are returned to your\nproject.\n\nConnect to Android Partner Device Labs\n--------------------------------------\n\nAndroid Partner Device Labs are device labs operated by Google OEM partners,\nsuch as Samsung, Xiaomi, OPPO, OnePlus, vivo and others, and expand the\nselection of devices available in Android Device Streaming. This service\nis available in the Stable channel, starting with Android Studio Narwhal\nFeature Drop.\n\nTo get started, do the following:\n\n1. In the Device Manager, click **+ \\\u003e Select Remote Devices**.\n2. 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. \n\n3. Click **Confirm**.\n4. From the Device Manager, you can connect to the partner lab device like you would any other Android Device Streaming device.\n\n| **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.\n\n### Enable Partner Device Labs in Google Cloud Console\n\nIf the required partner lab is not enabled for your selected Firebase project\nAndroid Studio will notify you, and you can follow the prompts to enable the\nselected partner labs.\n\n\n\u003cbr /\u003e\n\n\nAn Editor or Owner of the project is required to enable\neach partner lab on the [Partner Device Labs](https://console.cloud.google.com/omnilab/partner-lab) page in Google Cloud Console.\nHere's how to enable a partner lab:\n\n1. Check to make sure that the correct Google Cloud project is selected at the top of the page.\n2. Click the toggle for the device lab you want to enable and follow the prompts.\n3. After the partner lab is enabled, you and your team can use the devices in Android Studio.\n\nPricing for Android Device Streaming\n------------------------------------\n\nFor more information, see [Firebase usage levels, quotas, and pricing](https://firebase.google.com/docs/test-lab/usage-quotas-pricing#device-streaming).\n\nFrequently asked questions\n--------------------------\n\n### What makes Android Device Streaming, powered by Firebase, different?\n\nDevices, security, and features. Android Device Streaming is where\nyou can expect to have access to some of the latest Android devices as quickly\nas possible. Additionally, the service supports a select number of older\ndevices, so that you have access to a wide range of configurations and API\nlevels. And because these devices are housed in secure data centers,\nyour sessions are secure and your devices are factory reset and wiped before\nthey are made available to another user.\n\nFinally, the service is integrated directly with Android Studio and accessible\nover an ADB over SSL connection, so the tools you use every day over ADB work\nseamlessly with device streaming.\n\n### How much does the service cost?\n\nFor pricing details, see [Pricing for Android Device Streaming](https://firebase.google.com/docs/test-lab/usage-quotas-pricing#device-streaming).\n\n### Is my session secure and what happens when my session ends?\n\nEach device is located in Google's secure data centers and connects to your\nworkstation using an ADB over SSL connection. When your session ends, device\ndata is fully wiped and factory reset before the device is made\navailable to another developer.\n\n### Do I need to use Android Studio?\n\nWhile Android Studio Jellyfish or later is required to connect to the service\nand request a device, the direct ADB over SSL connection lets you use any tools\nor IDEs that use ADB to communicate with test devices after you reserve and\nconnect to a device."]]