הגנה על תקינות האפליקציה ב-Google Play Games במחשב
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Google Play Games במחשב תומך בהגנה על תקינות באמצעות Play Integrity API ועוד כמה תכונות של Google Play, כדי לוודא שהמשחק לא ניזוק או הותקן ממקור לא מהימן.
Play Integrity API
Play Integrity API עוזר להגן על המשחקים מפני אינטראקציות שעלולות להיות מסוכנות או כאלה שמקורן בתרמית. ה-API מאפשר לכם לצמצם התקפות וניצול לרעה, כמו הונאות, רמאויות וגישה לא מורשית. Play Integrity API מחליף את SafetyNet Attestation API (SNAA) ואת Play App Licencing API.
SNAA לא פועל עם Google Play Games במחשב.
שדה תקינות המכשיר
השדה deviceRecognitionVerdict מכיל ערך יחיד, deviceRecognitionVerdict, שמייצג את מידת היכולת של המכשיר לאכוף את תקינות האפליקציה. כברירת מחדל, הערך של deviceRecognitionVerdict יכול להיות אחד מהערכים הבאים:
MEETS_DEVICE_INTEGRITY: האפליקציה פועלת במכשיר Android עם Google Play Services. המכשיר עובר את בדיקות התקינות של המערכת ועומד בדרישות התאימות של Android.
MEETS_VIRTUAL_INTEGRITY: האפליקציה פועלת בסביבת Android וירטואלית עם Google Play Services, ומוגבלת כרגע ל-Google Play Games במחשב. הסביבה עומדת בדרישות הליבה של תאימות ל-Android ועוברת את בדיקות התקינות של Google Play.
אף אחד (ערך ריק): האפליקציה פועלת במכשיר שיש בו סימנים למתקפה (למשל, הוק של API) או לפריצה למערכת (למשל, הרשאת root), או שהאפליקציה פועלת במכשיר לא פיזי (למשל, אמולטור) שלא עובר את בדיקות האימות של Google Play.
ב-Play Integrity API נעשה שימוש בערך deviceRecognitionVerdictMEETS_VIRTUAL_INTEGRITY כדי לציין שהמשחק פועל ב-Google Play Games במחשב. זוהי דוגמה לתגובה שעוברת את הבדיקה מ-Play Integrity API:
deviceIntegrity:{// "MEETS_VIRTUAL_INTEGRITY" indicates the game is running on Google Play Games on PCdeviceRecognitionVerdict:["MEETS_VIRTUAL_INTEGRITY"]}
אם יש לכם משחק לפלטפורמות שונות שזמין גם בנייד וגם ב-Google Play Games במחשב, חשוב לוודא שהלוגיקה של האימות בודקת גם את 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 (שעון 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,["# 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)."]]