Protection de l'intégrité pour Google Play Jeux sur PC
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Google Play Jeux sur PC vous aide à protéger l'intégrité grâce à l'API Play Integrity et à plusieurs autres fonctionnalités Google Play qui vous permettent de vous assurer que votre jeu n'a pas été altéré ou qu'il n'a pas été installé à partir d'une source non fiable.
API Play Integrity
L'API Play Integrity protège vos jeux contre les interactions potentiellement dangereuses et frauduleuses. Elle vous permet de limiter les attaques et les abus tels que la fraude, la tricherie et les accès non autorisés. L'API Play Integrity remplace l'API SafetyNet Attestation (SNAA) et l'API Play App Licencing.
SNAA ne fonctionne pas avec Google Play Jeux sur PC.
Champ "Intégrité de l'appareil"
Le champ deviceRecognitionVerdict contient une valeur unique, deviceRecognitionVerdict, qui représente la capacité d'un appareil à appliquer l'intégrité de l'application. Par défaut, deviceRecognitionVerdict peut avoir l'une des valeurs suivantes :
MEETS_DEVICE_INTEGRITY : l'application s'exécute sur un appareil Android doté des services Google Play. L'appareil répond aux vérifications d'intégrité du système et respecte la configuration Android requise.
MEETS_VIRTUAL_INTEGRITY: l'application s'exécute dans un environnement Android virtuel doté de services Google Play, actuellement limités à Google Play Jeux sur PC. L'environnement répond aux exigences essentielles de compatibilité Android et aux vérifications d'intégrité de Google Play.
Aucune (valeur vide, par exemple) : l'application s'exécute sur un appareil qui présente des signes d'attaque (tels que des hooks d'API) ou qui est compromis par le système (en mode root, par exemple), ou encore l'application est en cours d'exécution sur un appareil non physique (comme un émulateur) qui ne répond pas aux vérifications d'intégrité de Google Play.
L'API Play Integrity utilise la valeur deviceRecognitionVerdictMEETS_VIRTUAL_INTEGRITY pour indiquer que le jeu est exécuté sur Google Play Jeux sur PC. Voici un exemple de réponse de l'API Play Integrity :
deviceIntegrity:{// "MEETS_VIRTUAL_INTEGRITY" indicates the game is running on Google Play Games on PCdeviceRecognitionVerdict:["MEETS_VIRTUAL_INTEGRITY"]}
Si un jeu multiplate-forme est disponible sur mobile et sur Google Play Jeux sur PC, assurez-vous que votre logique de validation vérifie à la fois MEETS_VIRTUAL_INTEGRITY et MEETS_DEVICE_INTEGRITY.
Protection automatique
La protection automatique de Google Play est un service qui vous aide à protéger votre jeu contre le piratage et la redistribution non autorisée. Lorsque les utilisateurs obtiennent votre application protégée depuis un canal de distribution inconnu, ils sont invités à télécharger sa version officielle sur Google Play. La protection automatique fonctionne dans votre application sans connexion de données. Elle peut être activée en un clic dans la Play Console et ne nécessite aucun travail de la part du développeur avant l'exécution des tests ni l'intégration du serveur backend. La protection automatique peut ajouter les fonctionnalités suivantes à votre jeu:
Vérifications du programme d'installation: la protection automatique peut ajouter des vérifications du programme d'installation Google Play au code de votre application, qui sont effectuées au moment de l'exécution lorsque votre application est ouverte. Si les vérifications du programme d'installation échouent, les utilisateurs sont invités à télécharger votre application sur Google Play.
Protection contre la falsification(cette fonctionnalité n'est disponible que pour certains partenaires Play) : la protection automatique peut ajouter des vérifications d'exécution au code de votre application pour détecter toute modification et utiliser des techniques d'obscurcissement avancées afin d'empêcher la suppression ou la rétro-ingénierie de ces vérifications. En cas d'échec des vérifications, l'utilisateur est invité à télécharger votre application sur Google Play, sinon elle ne s'exécute pas.
Le contenu et les exemples de code de cette page sont soumis aux licences décrites dans la Licence de contenu. Java et OpenJDK sont des marques ou des marques déposées d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/27 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 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)."]]