Google’s attestation service for Android, the Play Integrity API, lets a backend check whether a request comes from the genuine app, installed by Google Play, on a genuine, certified device. The app passes the signed, encrypted token it receives to its own server, which handles verification.
Google deprecated the SafetyNet Attestation API in 2022 and fully turned it down in January 2025. Play Integrity is the replacement, and it’s mostly banking and payment apps and games that depend on it, since those need to reject tampered builds and emulators along with unlicensed installs.
One thing to get right early. The token carries the app’s own request data, and Google’s documentation states that values in the requestHash or nonce field are visible in cleartext to the app and to Google. Put a digest of the request there, never the raw values.
What Is the Google Play Integrity API?

Google Play Integrity checks the app and the device it runs on. A passing result means the request came from your genuine app, installed by Google Play, on a genuine, certified Android device.
The verdict comes back signed and encrypted. Your app passes the integrity token to its backend, which handles verification, so the decision to trust a request stays on your side.
What it protects against
Out of the box, accountDetails shows whether the user installed or paid for the app on Google Play, which is how unauthorized access gets caught. appIntegrity covers code tampering by showing whether the binary is unmodified and recognized by Google Play.
Risky devices and emulators are a different matter, and deviceIntegrity is where they show up. It shows whether the app runs on a genuine, certified device.
Beyond the defaults, you can opt in to verdicts for unpatched devices, apps that can capture or overlay the screen, known malware and abnormal request volume. Repeat offenders are covered too, through device recall, which is still in beta.
Where it fits
Google’s own advice is to treat it as one signal among several. It shouldn’t be your only anti-abuse mechanism.
Any app where a tampered client costs real money is a fit, so payments, accounts, in-app purchases and competitive games all qualify. The call belongs inside your wider mobile app security design, next to server-side rate limits and monitoring.
It runs on phones, tablets, foldables, Android Auto, Android TV, Android XR, ChromeOS, Wear OS and Google Play Games for PC.
How Does the Google Play Integrity API Work?

The app asks Google Play services for an integrity token and sends it to your backend. The backend decrypts it and checks the verdict before approving the action. Google Play services only runs the on-device assessment, and your server makes the final call.
The request flow
On the device, the app builds a request, attaches a hash or nonce that represents the action, and gets back a signed, encrypted token.
From there the back-end service decrypts the token, compares the embedded hash with its own digest of the same request, and reads the verdict. If the hashes don’t match, the request is not trustworthy.
Decryption options
Standard requests can only be decrypted server-side through Google’s endpoint, and that needs a service account in the linked Cloud project with the playintegrity scope.
Classic requests give you two routes. Google-managed decryption is the recommended one, with your backend calling Google’s servers. Self-managed decryption works with keys downloaded from Play Console, on your own secure server.
Either way, never decrypt tokens or expose keys in the client app.
Replay and freshness checks
Standard requests get replay protection for free. Decrypting the same token repeatedly clears the verdicts, so a captured token is useless the second time.
With classic requests, replay protection is left to you, through a nonce and server-side logic. Whichever type you use, check timestampMillis against your allowed window before trusting anything else.
What Verdicts Does the Google Play Integrity API Return?
The decrypted payload contains requestDetails, accountDetails, appIntegrity, deviceIntegrity and, in some cases, environmentDetails, in no guaranteed order. environmentDetails only appears when the app access risk or Play Protect verdict is enabled in Play Console. Start with requestDetails and match it against the original request.
| Field | Labels returned | What it tells the backend |
|---|---|---|
| appIntegrity | PLAY_RECOGNIZED, UNRECOGNIZED_VERSION, UNEVALUATED | Whether the binary and certificate match Google Play |
| accountDetails | LICENSED, UNLICENSED, UNEVALUATED | Whether the user got the app from Google Play |
| deviceIntegrity | MEETS_BASIC_INTEGRITY, MEETS_DEVICE_INTEGRITY, MEETS_STRONG_INTEGRITY, MEETS_VIRTUAL_INTEGRITY | How far the device can be trusted |
| environmentDetails | appAccessRiskVerdict, playProtectVerdict | Risk from other apps and Play Protect status |
Device, app and account verdicts
Device integrity labels

deviceRecognitionVerdict is an array, and the whole field is left out when the device meets no label’s criteria, so your code needs to handle it being absent.
MEETS_DEVICE_INTEGRITY is the default label. It means a genuine, certified Android device, and on Android 13 and later, hardware-backed proof shows a locked bootloader and a certified manufacturer OS image.
MEETS_BASIC_INTEGRITY is opt-in and the loosest label of the lot. The device passes basic system integrity checks, but it may not meet Android compatibility requirements or be approved to run Google Play services, and the bootloader may be locked or unlocked. On Android 13 and later it only needs an attestation root of trust provided by Google.
MEETS_STRONG_INTEGRITY, also opt-in, adds a recent update on top of certification. On Android 13 and later that means security updates within the last year.
MEETS_VIRTUAL_INTEGRITY covers emulators running Google Play services, and only for apps released to Google Play Games for PC.
On Android 13 and later, basic and strong labels come back only when the requesting app was installed or updated through Google Play.
App and account labels
PLAY_RECOGNIZED means the app and certificate match the versions Google Play distributed. If the certificate or package name doesn’t match Google Play records, you get UNRECOGNIZED_VERSION instead.
A LICENSED verdict means the user installed or updated the app from Google Play. UNLICENSED points to something like a sideloaded build. UNEVALUATED turns up when a requirement was missed, for instance an untrustworthy device or a user who isn’t signed in to Google Play.
Optional environment signals
None of the opt-in environment signals replaces the device label. They sit on top of the defaults.
appAccessRiskVerdict flags apps that could capture the screen, draw overlays or control input, with KNOWN_ prefixes for Play or system apps and UNKNOWN_ for the rest. playProtectVerdict returns NO_ISSUES, NO_DATA, POSSIBLE_RISK (Play Protect off), MEDIUM_RISK or HIGH_RISK.
recentDeviceActivity is a rough activity grade, LEVEL_1 to LEVEL_4, based on token requests in the last hour with approximate thresholds. deviceRecall (beta) is the odd one out. It returns bits you set earlier, and they persist after a reinstall or reset.
App access risk on standard requests needs library 1.4.0 or later and Android 6 (API 23) or higher, and it only works on phones, tablets and foldables.
What changed in May 2025
Google’s verdict changes took effect for all developers in May 2025, and the estimated impact varies a lot by verdict:
- About 14.5% fewer meets-strong-integrity responses, since Android 13+ now requires a security update within the last year
- About 7% fewer responses carrying optional signals on Android 13+, because the app must be installed or updated by Google Play
- About 2.5% fewer licensed responses on Android 6+
- About 0.4% fewer meets-device-integrity responses on Android 13+, which now need a hardware-backed, positive verified boot verdict
Source: Google Android Developers, 2025. These are averages across apps, and individual apps may see smaller or larger shifts.
Standard vs Classic Requests: Which Should You Use?
Go with standard requests for almost everything, and keep classic for the occasional high-value action.
| Feature | Standard | Classic |
|---|---|---|
| Warm-up | Required, a few seconds | None |
| Typical latency | A few hundred milliseconds | A few seconds |
| Replay protection | Automatic, by Google Play | Your nonce plus server logic |
| Decryption | Google’s endpoint only | Google-managed or self-managed keys |
| Best for | Frequent, on-demand checks | Rare, highest-value actions |
requestHash and nonce
Standard requests carry a requestHash, which is a digest (SHA-256, for example) of a stable serialization of the request parameters, capped at 500 bytes. The classic equivalent is a nonce, built from a unique value plus the content of the action.
Data in either field is visible in cleartext to your app and to Google, so hash or encrypt it first.
Pros and cons
Standard requests have low latency once warmed up, handle replay protection for you and suit frequent checks. The catches are that each app instance can prepare the token provider up to 5 times per minute, and a provider held too long fails with INTEGRITY_TOKEN_PROVIDER_INVALID.
Classic requests need no warm-up, and every verdict is recomputed fresh. The price is speed, since they’re slower and heavier on the user’s data and battery, and the nonce and replay logic are your job.
The decision rule
Default to standard. Classic only earns its place when a single action is valuable enough to justify a fresh, slow assessment.
And if you’re tempted to make a classic request and cache it for later, Google’s guidance is to make a standard request instead.
How to Set Up and Integrate the Google Play Integrity API
The Google Cloud Console and Play Console work comes first, before anything in the app code changes.
Requirements and supported platforms
Kotlin and Java apps pull the library from Google’s Maven repository. Unity and Unreal Engine have their own plugins or guides, and so do native projects.
- From v1.4.0 on, the minimum Android SDK is the same for both request types and is set by the library’s minSdkVersion, which has been Android 6.0 (API 23) since v1.5.0. Older v1.3.0 and earlier allowed Android 5.0 for standard and Android 4.4 for classic.
- The library is com.google.android.play:integrity, at version 1.6.0 as of November 2026.
- Unity 2017.x and older is unsupported, and Unreal Engine needs 5.0 or later.
- You can link up to five Cloud projects per app or SDK, for example separate test and production projects.
Integration steps

- Create or choose a Google Cloud project and enable the Play Integrity API under APIs and services.
- In Play Console, open Protected with Play, click Get started next to Play Integrity API, then Link Cloud project.
- Add the com.google.android.play:integrity dependency to your build file.
- Warm up the token provider with prepareIntegrityToken and your Cloud project number, then keep the provider in memory.
- Compute the requestHash for the action and call request() on the provider to get a token.
- Send the token to your backend, which calls playintegrity.googleapis.com decodeIntegrityToken with a service account using the playintegrity scope.
- Compare the returned requestHash with your own digest, then act on the verdict and send the decision back to the app.
Where setups go wrong
An unlinked project is the first thing to check. Projects enabled in Cloud Console but not linked to Play get no extra configuration options and no quota increases.
More often, though, the trouble sits in the API integration around the call and not in the call itself. Token lifetime and retry handling break more often than the client code does, and server parsing is a frequent culprit too.
Changes to the response settings in Play Console also go live immediately, production included. Make sure your server can parse new fields before you switch them on.
How Many Requests Does the Google Play Integrity API Allow per Day?

Every Google Cloud project starts with a default quota of 10,000 requests per day, and a higher quota goes only to projects linked to your app or SDK.
The 10,000 daily token requests are shared between classic requests and standard token preparations. Token decryptions get their own 10,000 per day on Google’s servers, shared between both request types.
Unlinked projects stay capped at 10,000 per day whatever custom quota is set, and anything beyond that returns TOO_MANY_REQUESTS (-8). Quota increases take up to one week to process.
April 19, 2027 is the policy deadline, the extended deadline for projects with a pre-existing raised quota to link before the cap is enforced.
Source: Google Android Developers quota documentation, last updated November 17, 2026.
What a quota increase requires
Quota belongs to the Cloud project number, not to the app, and an increase covers both client-side token generation and server-side decryption.
The app must be available on Google Play, the Cloud project must be linked in Play Console, and the implementation must be correct, including proper retry strategies. Then you submit the quota request form.
The restriction to linked projects exists so third parties can’t exhaust your quota with their own traffic.
Protecting your quota
A daily cap is a blunt form of API rate limiting, so spread your calls instead of firing them on every screen.
Set quota alerts in Cloud Console, and roll out very high-volume changes gradually, because sudden spikes can trigger throttling.
Running out of quota makes the check fail, which isn’t the same as the user failing it. TOO_MANY_REQUESTS can be retried with backoff, and when quota is the real cause, a higher daily maximum is the fix.
How Should an App Respond to Verdicts and Errors?
Start by running the API without enforcement. Once you trust the numbers, gate actions in tiers of allow, allow with limits, allow after a CAPTCHA and deny, and send fixable problems to a Play remediation dialog instead of locking the user out.
Before any trust tier applies, requestDetails has to match expectations. After that, appRecognitionVerdict should be PLAY_RECOGNIZED and appLicensingVerdict should be LICENSED.
Google ranks device labels from most to least trusted, starting with MEETS_STRONG_INTEGRITY on Android 13+, then MEETS_DEVICE_INTEGRITY on Android 13+ (and strong on older versions), then MEETS_DEVICE_INTEGRITY on older versions, and finally MEETS_BASIC_INTEGRITY. Treat the table below as a starting policy and adjust it to what each action is worth.
| Verdict result | Risk | Suggested response |
|---|---|---|
| Licensed, recognized, strong integrity | Lowest | Allow, including high-value actions |
| Device integrity only | Low | Allow, cap the highest-value actions |
| Basic integrity only | Elevated | Allow with limits, or add a CAPTCHA |
| No device label, unlicensed or unrecognized | High | Offer a remediation dialog, deny until fixed |
Remediation dialogs
Google Play ships dialogs for the usual fixable problems.
- GET_LICENSED (type 1) handles UNLICENSED or UNRECOGNIZED_VERSION by sending the user to the genuine app on Google Play.
- CLOSE_UNKNOWN_ACCESS_RISK (type 2) asks the user to close unknown apps that capture the screen or control the device, and CLOSE_ALL_ACCESS_RISK (type 3) does the same but includes known apps.
- GET_INTEGRITY (type 4) rolls weak device integrity, licensing, tampering and remediable client errors into one flow.
- GET_STRONG_INTEGRITY (type 5) covers everything in type 4, plus strong integrity and Play Protect issues.
Your server verifies the token and picks the dialog, the app calls showDialog, and a fresh token confirms the fix. Standard requests also need the provider warmed up again.
Retryable and non-retryable errors

NETWORK_ERROR (-3), TOO_MANY_REQUESTS (-8), GOOGLE_SERVER_UNAVAILABLE (-12), CLIENT_TRANSIENT_ERROR and INTERNAL_ERROR are all worth retrying with backoff. NETWORK_ERROR can also be fixed through a dialog.
API_NOT_AVAILABLE (-1) and PLAY_STORE_NOT_FOUND (-2) should not be retried automatically, because the user or the Play Console setup has to change first. APP_NOT_INSTALLED (-5) and APP_UID_MISMATCH (-7) are non-actionable and count as failed integrity checks. CLOUD_PROJECT_NUMBER_IS_INVALID (-16) belongs in the same no-retry group.
Google’s backoff is 5 seconds, then 10, then 20, capped at three retries. If errors persist, treat the result as a failed integrity check, not a pass.
Check the Play status dashboard and decide in advance how your backend behaves during an outage or after device keys are revoked.
What Happened to SafetyNet Attestation, and How Do You Migrate?

SafetyNet Attestation was deprecated in 2022 and shut down completely in January 2025, so calling it now just returns an error.
How the timeline moved
Google changed the schedule more than once, so older blog posts and tutorials quote different dates.
Deprecation was announced in June 2022, with regular reminders to migrate. The original plan set a migration deadline of June 30, 2023 and a full turndown on June 30, 2024. That was later extended, with the migration deadline moved to January 31, 2024 and a gradual turndown after that date. The final notice puts the full turndown at starting January 31, 2025.
Google’s deprecation page says January 2025, while the final reminder says starting January 31, 2025. Either way, the API is gone.
Field mapping
Google’s migration guide maps each old response field to its Play Integrity equivalent.
| SafetyNet field | Play Integrity field |
|---|---|
| timestampMs | requestDetails.timestampMillis |
| nonce | requestDetails.nonce |
| apkPackageName | appIntegrity.packageName |
| ctsProfileMatch and basicIntegrity | Combined into the labels in deviceIntegrity.deviceRecognitionVerdict: basicIntegrity alone maps to MEETS_BASIC_INTEGRITY, both true to MEETS_DEVICE_INTEGRITY, and a failed basicIntegrity to no label |
The new API carries every signal SafetyNet offered and adds the Google Play license verdict and better error messaging.
Migration checklist
- Support both response types on the server while older clients are still in the field
- Review nonce generation against Play Integrity requirements
- Rebuild device thresholds on the new labels
- Delete the SafetyNet branch once logs show no SafetyNet tokens
Don’t copy thresholds across by name. SafetyNet’s ctsProfileMatch was a much stricter signal than basicIntegrity, since only unmodified, Google-certified devices passed it.
Run regression testing on the verdict-handling code before you remove the old branch.
When the Google Play Integrity API Does Not Work
The API struggles on devices outside Google’s certification model and on setups that skip Google Play, and any design that treats one weak label as proof of trust will get burned.
| Condition | What happens | What to do |
|---|---|---|
| Rooted device, Android 13+, key attestation present | Can still return MEETS_BASIC_INTEGRITY | Require the device or strong label for sensitive actions |
| Strong label on Android 12 or lower | No recent security update required | Check sdkVersion in deviceAttributes |
| No Play Store or Play services | PLAY_STORE_NOT_FOUND or PLAY_SERVICES_NOT_FOUND | Guide the user to install or update, or treat as failed |
| Sideloaded or other-store install | UNLICENSED licensing verdict | Show GET_LICENSED, or lower the trust tier |
| Cloud project not linked | Capped at 10,000 requests per day | Link the project in Play Console |
Sources: Google Android Developers documentation (rooted devices on Android 13 and later, strong integrity on Android 12 and lower, Play Store and Play services errors, licensing).
Why the basic label is a weak gate
Don’t gate payments or account recovery on MEETS_BASIC_INTEGRITY alone. It passes basic system integrity checks, but the device may not meet Android compatibility requirements or be approved to run Google Play services, and rooted devices with key attestation can still return it.
It’s the easiest label to pass and the least worth trusting, so keep it for low-value actions.
What field data shows

A WiSec 2026 study from William and Mary (MacDonald and Herwig) examined 125,421 APKs collected in April 2025. Between 86.7% and 95.0% of apps in each of its six categories referenced neither SafetyNet nor Play Integrity.
In banking, 75.8% of attestable apps (1,005 of 1,326) used only SafetyNet. That snapshot postdates the January 2025 turndown, so any attestation call those builds still make to SafetyNet returns an error.
Among the 6,281 apps that do invoke Play Integrity, the Classic API dominates. 76.2% use only Classic, 22.4% use both request types and 1.3% use only Standard. Google’s own guidance points most developers to standard requests, and classic is simply the original way to request verdicts, which fits older integrations. The study names no definitive cause. It notes that Standard arrived later and needs a developer-maintained backend, and that 20 of the 22 third-party packages it identified use Classic, so library choice matters.
94.2% of invoking apps (5,918 of 6,281) pair the API with at least one hardening technique, such as root detection or runtime checks. That matches Google’s advice to treat it as one signal, alongside the usual mobile app security best practices (mobile app security best practices).
Google Play Integrity API FAQ
How much does the Google Play Integrity API cost?
The setup and quota pages Google publishes describe daily limits and eligibility rules, not prices. Those eligibility criteria are subject to change, so confirm current terms in the Play Integrity API Terms of Service.
Can apps distributed outside Google Play use the API?
Yes. An app distributed exclusively outside Google Play can enable the API from Google Cloud Console.
Play Console’s extra configuration options, testing features and reporting are limited to apps distributed on Google Play, though. Because an app outside Play can’t link a project, it stays at the default 10,000 requests per day.
Do emulators pass the integrity checks?
In one narrow case. An Android emulator with Google Play services that passes system integrity checks can return MEETS_VIRTUAL_INTEGRITY, but that label applies only to apps released to Google Play Games for PC.
An emulator that does not pass Google Play integrity checks gets treated as a non-physical, untrusted environment.
How does Firebase App Check use the API?
App Check includes a built-in Play Integrity provider that helps make sure only your app can access your project’s backend resources. Firebase’s current page says it supports apps published on Google Play, outside it, or both, while older copies of the page say Google Play only.
For Play Integrity features App Check does not implement, Firebase points to a custom provider.
Can an SDK call the API instead of the host app?
Yes. SDK providers can link their own Google Cloud project in the Play SDK Console, so usage is attributed to the SDK, and apps that include it do not have to set up the API individually.
Access to the Google Play SDK Console is subject to eligibility criteria.
Monitoring Verdict Rates After Launch
Monitoring the Google Play Integrity API starts with a baseline, meaning the share of each device label per Android version, recorded before any action is blocked. A shift against that baseline then points to either a Google-side change or an attack.
Record label rates by sdkVersion and review the API reporting after each release. Enforce on just one high-value action first.
Per-version rates make drift readable. Google’s May 2025 changes to device and strong integrity apply to Android 13 and later, so a drop confined to those devices matches the documented change, while the same drop on Android 12 and lower does not.
Testing features and API reporting require a Cloud project linked in Play Console, and testers join through a list of Gmail accounts with access to your release.
This guidance was verified on November 26, 2026. Google’s verdicts page was last updated on October 23, 2026, and eligibility criteria are subject to change, so recheck the page each quarter.
Verdict monitoring covers the attestation layer only, so pair it with mobile app security testing of the app itself.
- Is Notepad++ Safe? Official Download, Updates, CVEs - November 29, 2026
- How to Evaluate an AI Code Reviewer on Your Own Pull Requests - November 29, 2026
- Outsourcing Medical Device Software Securely - November 28, 2026


