01How it works
Play Integrity is opt-in per Android registration. Set the service account first, then switch the mode:
p202 app integrity credential set 3 --file service-account.json p202 app update 3 --integrity-mode observe --integrity-cloud-project-number 123456789012 p202 app integrity status 3
observe records every install's verdict and changes nothing; require attributes (and pays)
an install only once its verdict passes. p202 app install list 3 --integrity-state invalid
shows the installs that failed.
02Commands
2 under p202 app integrity.
03For agents
Running this from an agent
- Read the same facts as JSON:
p202 commands app integrity --json. - With
AI_AGENT,CLAUDECODEor another agent variable set, output is compact JSON and errors arrive on stderr as a JSON envelope with ahint. - Exit codes: 0 ok, 1 bad input, 2 auth, 3 network, 4 server error, 5 partial failure.
{
"path": "p202 app integrity",
"use": "integrity",
"short": "Play Integrity for an Android app: status, and its Google service-account credential",
"long": "Play Integrity is opt-in per Android registration. Set the service account first, then\nswitch the mode:\n\n p202 app integrity credential set 3 --file service-account.json\n p202 app update 3 --integrity-mode observe --integrity-cloud-project-number 123456789012\n p202 app integrity status 3\n\nobserve records every install's verdict and changes nothing; require attributes (and pays)\nan install only once its verdict passes. `p202 app install list 3 --integrity-state invalid`\nshows the installs that failed.",
"runnable": false
}