تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
توضِّح هذه الصفحة كيفية تشغيل لعبتك على
جهاز ChromeOS متوافق مع Android
لأغراض الاختبار. يمكنك استخدام ChromeOS كنظام أساسي بديل للاختبار
لتطبيق "ألعاب Google Play على الكمبيوتر" إذا لم يكن بإمكانك الوصول إلى
محاكي المطوّرين.
إذا كان بإمكانك استخدام
محاكي المطوّرين، ننصحك باستخدامه لمحاولة
اختبار لعبتك لأنّه أقرب بيئة إلى
"ألعاب Google Play على الكمبيوتر".
تحميل لعبتك وتشغيلها
يمكنك استخدام Android Debug Bridge (adb) لتحميل
ملفات APK على أجهزة ChromeOS. إذا لم يسبق لك تثبيتها،
ننصحك بتثبيت إحدى الأدوات التالية، والتي تتضمّن أحدث إصدار من adb:
يمكنك تشغيل تطبيقك مباشرةً من Android Studio أو استخدام الأمر adb install
لنشر ملف APK على أجهزة ChromeOS. إذا كانت لعبتك تستخدم
مجموعة حزمات تطبيق Android، استخدِم bundletool install-apks لنشر الملفات.
adb install C:\yourpath\yourgame.apk
رصد المنصة
إذا كنت بحاجة إلى تفعيل ميزات أسلوب اللعب استنادًا إلى نوع الجهاز، ابحث عن ميزة "org.chromium.arc" النظام لرصد أجهزة ChromeOS:
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Test your game on ChromeOS devices\n\nThis page describes how to run your game on a\n[ChromeOS device that supports Android](https://www.chromium.org/chromium-os/chrome-os-systems-supporting-android-apps/)\nfor testing purposes. You can use ChromeOS as an alternate testing plarform for\nGoogle Play Games on PC if you don't have access to the\n[developer emulator](/games/playgames/emulator).\n\nIf you have access to the\n[developer emulator](/games/playgames/emulator), we recommend you use it to\ntest your game because it is the closest environment to\nGoogle Play Games on PC.\n\nLoad and run your game\n----------------------\n\nYou can use [Android Debug Bridge (adb)](/studio/command-line/adb) to load\nAPK files to your ChromeOS devices. If you haven't already done so,\nwe recommend that you install one of the following\ntools, which include the latest version of adb:\n\n- [Android Studio](/studio)\n\n- [Android SDK Platform tools](/studio/releases/platform-tools#downloads)\n\nYou also need to [enable ADB connection on your ChromeOS devices](https://support.google.com/chromebook/answer/9770692?ref_topic=3415446).\n\nYou can run your app directly from Android Studio, or use the `adb install`\ncommand to deploy your APK file to ChromeOS devices. If your game uses an\nAndroid App Bundle, use [`bundletool install-apks`](/studio/command-line/bundletool#deploy_with_bundletool) to deploy the files. \n\n adb install C:\\yourpath\\yourgame.apk\n\nDetect the platform\n-------------------\n\nIf you need to toggle gameplay features based on device type, look for the\n`\"org.chromium.arc\"` system feature to detect ChromeOS devices: \n\n### Kotlin\n\n```kotlin\nvar isPC = packageManager.hasSystemFeature(\"org.chromium.arc\")\n \n```\n\n### Java\n\n```java\nPackageManager pm = getPackageManager();\nboolean isPC = pm.hasSystemFeature(\"org.chromium.arc\")\n \n```\n\n### C#\n\n```c#\nvar unityPlayerClass = new AndroidJavaClass(\"com.unity3d.player.UnityPlayer\");\nvar currentActivity = unityPlayerClass.GetStatic\u003cAndroidJavaObject\u003e(\"currentActivity\");\nvar packageManager = currentActivity.Call\u003cAndroidJavaObject\u003e(\"getPackageManager\");\nvar isPC = packageManager.Call\u003cbool\u003e(\"hasSystemFeature\", \"org.chromium.arc\");\n \n```"]]