bedkillerspacex-boop/codex-skill-library/android-safetynet-play-integrity
Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Migrate and operate Play Integrity API (successor to SafetyNet Attestation) for owned Android apps: request integrity tokens, server-side decrypt/verify, verdict handling (MEETS_DEVICE_INTEGRITY, app integrity, account), and anti-abuse design. Use for attestation on sensitive actions — not for bypassing Integrity on third-party apps.
Install
npx vskill@latest install bedkillerspacex-boop/codex-skill-library/android-safetynet-play-integritySKILL.md
The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/android-safetynet-play-integrity.
Play Integrity (SafetyNet Migration)
Scope And Authorization
- In scope: Apps and backends you own; Google Cloud project linked to Play.
- Out of scope: Bypassing Play Integrity for cheating/fraud on others’ apps; distributing spoof tools.
- Server must verify tokens — never trust client boolean alone.
- Pair with
code-quality-standardsand account abuse controls.
When To Use
- Replacing SafetyNet Attestation API with Play Integrity API.
- Gating high-risk actions (login step-up, payments, coupon claim) with device/app integrity.
- Debugging verdict mismatches on emulators/rooted lab devices.
- Designing graceful degradation when Integrity unavailable.
Do Not Use As Primary
| Need | Skill instead | |
|---|---|---|
| Biometric local unlock | android-biometric-prompt | |
| General pentest | android-pentesting-tricks | |
| Root detection-only DIY | Prefer Integrity + server policy | |
| Implementation quality baseline | code-quality-standards |
Domain Focus
| Piece | Role | |
|---|---|---|
| Integrity token | Device requests; server verifies via Google API | |
| Nonce/requestHash | Bind token to transaction | |
| App integrity | Package name + cert match Play | |
| Device integrity | MEETS_DEVICE_INTEGRITY / basic / strong tiers (labels evolve) | |
| Account licensing | Optional Play licensing signals | |
| Classic SafetyNet | Legacy; plan full removal |
Workflow
1. Confirm threats and success criteria
- Record abuse cases Integrity should raise cost for (bots, modified APKs, emulators).
- Success: server rejects invalid/replayed tokens; nonce bound; false-positive plan for rare devices; SafetyNet code removed.
- Link Play Console ↔ Cloud project per Google docs.
2. Client: request token
- Nonce from server, single-use, short TTL.
- Call close to the sensitive action, not once per week only.
3. Server: verify
| Check | Fail closed? | |
|---|---|---|
| Signature/Google verify error | Yes | |
| Nonce mismatch / reuse | Yes | |
| Package/cert mismatch | Yes | |
| Device integrity insufficient | Policy-dependent | |
| Clock skew large | Yes |
4. Policy matrix (example)
| Action | Required verdict | |
|---|---|---|
| Read public content | None | |
| Login from new device | Basic device + app integrity | |
| Redeem high-value coupon | Stricter device integrity + rate limits | |
| Lab/debug builds | Alternate attestation or allowlist builds |
- Combine with account risk scores — Integrity is not CAPTCHA alone.
- Log reason codes without logging full tokens.
5. Migrate off SafetyNet
- Dual-run period: accept both only with clear deprecation date.
- Update runbooks and customer support macros (“device doesn’t meet integrity”).
6. Verify
7. Hand off
- Document Cloud project, service account, key rotation.
- Metrics: failure rates by verdict; watch for outages.
- Break-glass for Integrity API downtime (limited, ticketed).
Good / Bad
| Topic | Good | Bad | |
|---|---|---|---|
| Trust | Server verify | if (client.integrityOk) | |
| Nonce | Server one-time | Static string in APK | |
| UX | Explain + support path | Hard block with no recovery | |
| Scope | Sensitive actions | Every public GET |
Output Checklist
- [ ] Play/Cloud linkage done
- [ ] Client token request with server nonce
- [ ] Server verify + replay protection
- [ ] Policy matrix documented
- [ ] SafetyNet removed or dated dual-run
- [ ] Lab verdict tests recorded
- [ ] Metrics/alerts for API errors
- [ ]
code-quality-standardsapplied
Rules
- Owned apps only; no bypass tooling for third parties.
- Always verify on server with nonce binding.
- Integrity raises attacker cost — combine with other controls.
- Protect Google service account keys.
- Respect user privacy in logging.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingandroid-safetynet-play-integrity/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/android-safetynet-play-integrity)