संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस पेज में बताया गया है कि किसी
Android के साथ काम करने वाले ChromeOS डिवाइस
टेस्टिंग के लिए इस्तेमाल किया जाता है. अगर आपके पास डेवलपर एमुलेटर का ऐक्सेस नहीं है, तो पीसी के लिए Google Play Games को टेस्ट करने के लिए, ChromeOS का इस्तेमाल किया जा सकता है.
अगर आपके पास
डेवलपर एम्युलेटर का इस्तेमाल कर रहे हैं, तो हमारा सुझाव है कि आप इसका इस्तेमाल
अपने गेम का परीक्षण करें, क्योंकि यह इसके सबसे करीब है
Google Play Games on PC.
अपना गेम लोड करें और चलाएं
अपने ChromeOS डिवाइसों पर APK फ़ाइलें लोड करने के लिए, Android डीबग ब्रिज (adb) का इस्तेमाल किया जा सकता है. अगर आपने पहले से ऐसा नहीं किया है, तो
हमारी सलाह है कि आप इनमें से किसी एक को इंस्टॉल करें
शामिल हैं, जिनमें adb का नया वर्शन शामिल है:
आप सीधे Android Studio से या adb install का इस्तेमाल करके, अपना ऐप्लिकेशन चला सकते हैं
कमांड का इस्तेमाल करें. अगर आपका गेम, Android ऐप्लिकेशन बंडल का इस्तेमाल करता है, तो फ़ाइलों को डिप्लॉय करने के लिए bundletool install-apks का इस्तेमाल करें.
adb install C:\yourpath\yourgame.apk
प्लैटफ़ॉर्म का पता लगाना
अगर आपको डिवाइस टाइप के हिसाब से गेमप्ले की सुविधाओं को टॉगल करना है, तो
ChromeOS डिवाइसों का पता लगाने के लिए, सिस्टम की "org.chromium.arc" सुविधा:
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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 (UTC) को अपडेट किया गया."],[],[],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```"]]