Protección de la integridad para Google Play Juegos para PC
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Google Play Juegos para PC admite la protección de la integridad a través de la API de Play Integrity y otras funciones de Google Play que garantizan que tu juego no se haya alterado ni se haya instalado de una fuente no confiable.
API de Play Integrity
La API de Play Integrity te ayuda a proteger tus juegos contra interacciones potencialmente peligrosas y fraudulentas. La API te permite reducir los ataques y los abusos, como fraudes, trampas y acceso no autorizado. La API de Play Integrity reemplaza la API de SafetyNet Attestation (SNAA) y la API de Play App Licencing.
La SNAA no funciona con Google Play Juegos para PC.
Campo de integridad del dispositivo
El campo deviceRecognitionVerdict contiene un solo valor, deviceRecognitionVerdict, que representa la eficacia con la que un dispositivo puede aplicar de manera forzosa la integridad de la app. De forma predeterminada, deviceRecognitionVerdict puede tener uno de estos valores:
MEETS_DEVICE_INTEGRITY: La app se está ejecutando en un dispositivo con tecnología Android y los Servicios de Google Play. El dispositivo pasa las verificaciones de integridad del sistema y cumple con los requisitos de compatibilidad de Android.
MEETS_VIRTUAL_INTEGRITY: La app se está ejecutando en un entorno virtual de Android con los Servicios de Google Play, que actualmente se limita a Google Play Juegos para PC. El entorno cumple con los requisitos principales de compatibilidad de Android y pasa las verificaciones de integridad de Google Play.
Sin valor (un valor en blanco): La app se está ejecutando en un dispositivo que tiene señales de ataque (como trampas de APIs) o de vulneración del sistema (como un dispositivo con permisos de administrador), o bien en un dispositivo no físico (como un emulador) que no pasa las verificaciones de integridad de Google Play.
La API de Play Integrity usa el valor MEETS_VIRTUAL_INTEGRITY de deviceRecognitionVerdict para indicar que el juego se ejecuta en Google Play Juegos para PC. A continuación, verás un ejemplo de una respuesta de aprobación de la API de Play Integrity:
deviceIntegrity:{// "MEETS_VIRTUAL_INTEGRITY" indicates the game is running on Google Play Games on PCdeviceRecognitionVerdict:["MEETS_VIRTUAL_INTEGRITY"]}
Si tienes un juego multiplataforma disponible para dispositivos móviles y Google Play Juegos para PC, asegúrate de que la lógica de validación verifique MEETS_VIRTUAL_INTEGRITY y MEETS_DEVICE_INTEGRITY.
Protección automática
La protección automática de Google Play es un servicio que te ayuda a proteger tu juego contra la piratería y la redistribución no autorizada. Cuando los usuarios descarguen tu app protegida en un canal de distribución desconocido, se les pedirá que descarguen la app oficial desde Google Play. La protección automática funciona en tu app sin conexión de datos. Se puede activar con un clic en Play Console y no requiere trabajo de los desarrolladores antes de la prueba ni integración del servidor de backend. La protección automática puede agregar las siguientes funciones a tu juego:
Verificaciones del instalador: La protección automática puede agregar verificaciones del instalador de Google Play al código de la app; estas se realizan en el tiempo de ejecución cuando se abre la app. Si fallan las verificaciones del instalador, se solicitará a los usuarios que descarguen tu app de Google Play.
Protección contra manipulaciones(esta función solo está disponible para socios de Play seleccionados):
La protección automática puede agregar verificaciones en el tiempo de ejecución al código de la app para detectar
modificaciones y usar técnicas avanzadas de ofuscación para evitar que se quiten las verificaciones
o se realice ingeniería inversa. Si fallan las verificaciones, se le pedirá al usuario que descargue la app en Google Play; de lo contrario, esta no se ejecutará.
El contenido y las muestras de código que aparecen en esta página están sujetas a las licencias que se describen en la Licencia de Contenido. Java y OpenJDK son marcas registradas de Oracle o sus afiliados.
Última actualización: 2025-07-27 (UTC)
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 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)."]]