ميزة "الحماية من الأنشطة غير المسموح بها" لبرنامج "ألعاب Google Play على الكمبيوتر"
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تتيح ميزة "ألعاب Google Play على الكمبيوتر" ميزة "توفير السلامة" من خلال واجهة برمجة التطبيقات
Play Integrity API والعديد من ميزات Google Play الأخرى للمساعدة في التأكّد من عدم التلاعب بلعبتك أو تثبيتها من مصدر غير موثوق به.
Play Integrity API
تساعدك واجهة برمجة التطبيقات Play Integrity API في حماية
ألعابك من عمليات التفاعل الاحتيالية والخطيرة المحتمَلة. تتيح لك واجهة برمجة التطبيقات
الحدّ من الهجمات وإساءة الاستخدام، مثل
الاحتيال والغش والوصول غير المصرّح به. تحلّ
واجهة برمجة التطبيقات Play Integrity API محلّ
واجهة برمجة التطبيقات SafetyNet Attestation API (SNAA) وواجهة برمجة التطبيقات Play App Licencing API.
لا تعمل ميزة SNAA مع تطبيق "ألعاب Google Play على الكمبيوتر".
حقل سلامة الجهاز
يحتوي الحقل
deviceRecognitionVerdict
على قيمة واحدة، وهي deviceRecognitionVerdict،
التي تمثّل مدى قدرة الجهاز على فرض سلامة التطبيق. يمكن أن يكون لسمة
deviceRecognitionVerdict تلقائيًا إحدى القيم التالية:
MEETS_DEVICE_INTEGRITY: يعمل التطبيق على
جهاز Android مزوّد
بـ "خدمات Google Play". يجتاز الجهاز عمليات التحقّق من سلامة النظام ويفي
بمتطلبات التوافق مع نظام التشغيل Android.
MEETS_VIRTUAL_INTEGRITY: يعمل التطبيق في بيئة افتراضية لنظام Android
مع "خدمات Google Play"، والتي تقتصر حاليًا على
"ألعاب Google Play على الكمبيوتر". تستوفي البيئة متطلّبات التوافق الأساسية مع نظام Android وتجتاز عمليات التحقّق من السلامة في Google Play.
لا شيء (قيمة فارغة): يعمل التطبيق على جهاز
يتضمّن علامات تشير إلى تعرُّضه للهجوم (مثل اعتراض طلبات البيانات من واجهة برمجة التطبيقات) أو اختراق نظامه (مثل
تزويد الجهاز بإذن الوصول إلى الجذر)، أو لا يعمل التطبيق على جهاز فعلي (مثل
المحاكي) لا يجتاز عمليات التأكّد من السلامة في Google Play.
تستخدِم واجهة برمجة التطبيقات Play Integrity API القيمة deviceRecognitionVerdictMEETS_VIRTUAL_INTEGRITY للإشارة إلى أنّ اللعبة تعمل على تطبيق "ألعاب Google Play على الكمبيوتر". في ما يلي مثال على ردّ مقبول من
واجهة برمجة التطبيقات Play Integrity API:
deviceIntegrity:{// "MEETS_VIRTUAL_INTEGRITY" indicates the game is running on Google Play Games on PCdeviceRecognitionVerdict:["MEETS_VIRTUAL_INTEGRITY"]}
إذا كانت لديك لعبة متوافقة مع جميع الأنظمة الأساسية وتتوفر على كلّ من الأجهزة الجوّالة و
"ألعاب Google Play على الكمبيوتر"، تأكَّد من أنّ منطق التحقّق منvalidity يتحقق من كلّ من MEETS_VIRTUAL_INTEGRITY و
MEETS_DEVICE_INTEGRITY.
الحماية التلقائية
الحماية التلقائية في Google Play هي خدمة تساعدك في حماية لعبتك من القرصنة وإعادة توزيعها بدون إذن. وعندما يحصل المستخدمون على تطبيقك المحمي من قناة توزيع
غير معروفة، سيتم توجيههم للحصول على التطبيق الرسمي من
Google Play. وتعمل الميزة داخل تطبيقك بدون اتصال данными. ويمكن تفعيلها بنقرة واحدة في
Play Console ولا تتطلّب أيّ تدخل من المطوّر قبل الاختبار ولا تحتاج إلى
دمج خادم الخلفية. يمكن أن تضيف ميزة "الحماية التلقائية"
الميزات التالية إلى لعبتك:
عمليات التحقّق من أداة التثبيت: يمكن أن تضيف ميزة "الحماية التلقائية" عمليات التحقّق من أداة التثبيت في Google Play إلى الرمز البرمجي لتطبيقك، ويتم تنفيذ هذه العمليات أثناء وقت التشغيل عندما يكون تطبيقك
مفتوحًا. إذا تعذّر فحص أداة التثبيت، سيُطلب من المستخدمين تثبيت
تطبيقك من Google Play.
الحماية من التلاعب(هذه الميزة متاحة لمجموعة محدَّدة من شركاء Play فقط):
تسمح خدمة "الحماية التلقائيَّة" بإضافة عمليات التحقّق أثناء التشغيل إلى الرمز البرمجي لتطبيقك لرصد أيّ تعديل مع استخدام أساليب متقدّمة لإخفاء مفاتيح فك التشفير بهدف منع إزالة عمليات التحقّق أو إجراء الهندسة العكسية عليها. وإذا لم تكن عمليات التحقّق ناجحة، سيُطلَب من المستخدمين تثبيت تطبيقك من Google Play أو لن يتم تشغيله.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ 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,["# Integrity protection for Google Play Games on PC\n\nGoogle Play Games on PC supports integrity protection through the Play\nIntegrity API and several other Google Play features to help ensure that\nyour game hasn't been tampered with or installed from an untrustworthy source.\n\nPlay Integrity API\n------------------\n\nThe [Play Integrity API](/google/play/integrity) helps protect your\ngames from potentially risky and fraudulent interactions. The API\nenables you to reduce attacks and abuse such as\nfraud, cheating, and unauthorized access. The\n[Play Integrity API](/google/play/integrity) replaces the\nSafetyNet Attestation API (SNAA) and Play App Licencing API.\nSNAA does not work with Google Play Games on PC.\n\n### Device Integrity Field\n\nThe\n[`deviceRecognitionVerdict`](/google/play/integrity/verdict#device-integrity-field)\nfield contains a single value, `deviceRecognitionVerdict`,\nthat represents how well a device can enforce app integrity. By default,\n`deviceRecognitionVerdict` can have one of these values:\n\n- `MEETS_DEVICE_INTEGRITY`: The app is running on an Android-powered device with Google Play services. The device passes system integrity checks and meets Android compatibility requirements.\n- `MEETS_VIRTUAL_INTEGRITY`: The app is running in a virtual Android environment with Google Play services, currently limited to Google Play Games on PC. The environment meets core Android compatibility requirements and passes Google Play integrity checks.\n- None (a blank value): The app is running on a device that has signs of attack (such as API hooking) or system compromise (such as being rooted), or the app is running on a non-physical device (such as an emulator) that does not pass Google Play integrity checks.\n\nThe Play Integrity API uses the `deviceRecognitionVerdict` value\n`MEETS_VIRTUAL_INTEGRITY` to indicate that the game is running on Google Play Games on PC. Here's an example of a passing response from\nthe Play Integrity API: \n\n deviceIntegrity: {\n // \"MEETS_VIRTUAL_INTEGRITY\" indicates the game is running on Google Play Games on PC\n deviceRecognitionVerdict: [\"MEETS_VIRTUAL_INTEGRITY\"]\n }\n\nIf you have a cross-platform game available on both mobile and\nGoogle Play Games on PC, make sure your\nvalidation logic checks for both `MEETS_VIRTUAL_INTEGRITY` and\n`MEETS_DEVICE_INTEGRITY`.\n\nAutomatic protection\n--------------------\n\nGoogle Play's [automatic protection](https://support.google.com/googleplay/android-developer/answer/10183279) is a service\nthat helps you protect your game against unauthorized redistribution and\npiracy. When users get your protected app from an unknown distribution\nchannel, they'll be prompted to get your official app from\nGoogle Play. Automatic protection works in your app without a data\nconnection. It can be turned on with one click in the\nPlay Console, and requires no developer work before testing and no\nbackend server integration. Automatic protection can add the following\nfeatures to your game:\n\n- **Installer checks**: Automatic protection can add Google Play installer checks to your app's code that happen at runtime when your app is opened. If the installer checks fail, users will be prompted to get your app on Google Play.\n- **Anti-tamper protection** **(this feature is only available to selected Play partners)**: Automatic protection can add runtime checks to your app's code to detect modification and use advanced obfuscation techniques to prevent the checks from being removed or reverse engineered. If the checks fail, the user will be prompted to get your app on Google Play or the app will not run.\n\nAutomatic protection requires no code changes or developer work before\ntesting. Learn more about\n[automatic protection in the Play Console help center](https://support.google.com/googleplay/android-developer/answer/10183279)."]]