Google Play Games is in open beta.

Integrity protection for Google Play Games

Google Play Games for PC supports integrity protection through the Play Integrity API and several other Google Play features to help ensure that your game hasn't been tampered with or installed from an untrustworthy source.

Play Integrity API

The Play Integrity API helps protect your games from potentially risky and fraudulent interactions. The API enables you to take action to reduce attacks and abuse such as fraud, cheating, and unauthorized access. The Play Integrity API replaces the SafetyNet Attestation API (SNAA) and Play App Licencing API. SNAA does not work with Google Play Games.

Device Integrity Field

Allow a deviceRecognitionVerdict of MEETS_VIRTUAL_INTEGRITY when you support a game on Google Play Games.

The deviceIntegrity field contains a single value, deviceRecognitionVerdict, that represents how well a device can enforce app integrity. By default, deviceRecognitionVerdict can have one of the following labels:

  • MEETS_DEVICE_INTEGRITY: The app is running on an Android device with Google Play services. The device passes system integrity checks and meets Android compatibility requirements.
  • MEETS_VIRTUAL_INTEGRITY: The app is running in a virtual Android environment with Google Play services, currently limited to Google Play Games. The environment meets core Android compatibility requirements and passes Google Play integrity checks.
  • No labels (for example, 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.

The Play Integrity API uses the deviceRecognitionVerdict label MEETS_VIRTUAL_INTEGRITY to indicate that the game is running on Google Play Games. The following is an example of a passing response from the Play Integrity API:

deviceIntegrity: {
    // "MEETS_VIRTUAL_INTEGRITY" indicates the game is running on Google Play Games
    deviceRecognitionVerdict: ["MEETS_VIRTUAL_INTEGRITY"]

If you have a cross-platform game available on mobile, ensure your validation logic checks for both MEETS_VIRTUAL_INTEGRITY and MEETS_DEVICE_INTEGRITY.

Do not turn on untrustworthy device exclusion in Play Console

An option in the Google Play Console allows you to prevent your app from being available to install from Google Play on devices that don't pass integrity checks.

Do not enable this exclusion rule in the device catalog. This feature is incompatible with Google Play Games and prevents game distribution to the platform.