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-integrity

SKILL.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-standards and 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

NeedSkill instead
Biometric local unlockandroid-biometric-prompt
General pentestandroid-pentesting-tricks
Root detection-only DIYPrefer Integrity + server policy
Implementation quality baselinecode-quality-standards

Domain Focus

PieceRole
Integrity tokenDevice requests; server verifies via Google API
Nonce/requestHashBind token to transaction
App integrityPackage name + cert match Play
Device integrityMEETS_DEVICE_INTEGRITY / basic / strong tiers (labels evolve)
Account licensingOptional Play licensing signals
Classic SafetyNetLegacy; plan full removal

Workflow

1. Confirm threats and success criteria
  1. Record abuse cases Integrity should raise cost for (bots, modified APKs, emulators).
  2. Success: server rejects invalid/replayed tokens; nonce bound; false-positive plan for rare devices; SafetyNet code removed.
  3. Link Play Console ↔ Cloud project per Google docs.
2. Client: request token
kotlin
// Sketch — use latest Play Integrity library APIs
val nonce = serverIssuedNonce() // base64, high entropy
val integrityManager = IntegrityManagerFactory.create(context)
val request = IntegrityTokenRequest.builder().setNonce(nonce).build()
integrityManager.requestIntegrityToken(request)
.addOnSuccessListener { resp -> sendToBackend(resp.token()) }
  1. Nonce from server, single-use, short TTL.
  2. Call close to the sensitive action, not once per week only.
3. Server: verify
bash
# Call Google Play Integrity decode/verify API with service account
# Validate: packageName, certDigest, nonce/requestHash, timestamp, verdicts
CheckFail closed?
Signature/Google verify errorYes
Nonce mismatch / reuseYes
Package/cert mismatchYes
Device integrity insufficientPolicy-dependent
Clock skew largeYes
4. Policy matrix (example)
ActionRequired verdict
Read public contentNone
Login from new deviceBasic device + app integrity
Redeem high-value couponStricter device integrity + rate limits
Lab/debug buildsAlternate attestation or allowlist builds
  1. Combine with account risk scores — Integrity is not CAPTCHA alone.
  2. Log reason codes without logging full tokens.
5. Migrate off SafetyNet
bash
rg -n "SafetyNet|Attestation" -S .
# Remove dependencies; replace with Play Integrity library
  1. Dual-run period: accept both only with clear deprecation date.
  2. Update runbooks and customer support macros (“device doesn’t meet integrity”).
6. Verify
bash
# Lab: stock device success; modified APK failure; emulator per policy
adb logcat | rg -i integrity
# Server unit tests: forged token rejected; replay rejected
7. Hand off
  1. Document Cloud project, service account, key rotation.
  2. Metrics: failure rates by verdict; watch for outages.
  3. Break-glass for Integrity API downtime (limited, ticketed).

Good / Bad

TopicGoodBad
TrustServer verifyif (client.integrityOk)
NonceServer one-timeStatic string in APK
UXExplain + support pathHard block with no recovery
ScopeSensitive actionsEvery 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-standards applied

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bedkillerspacex-boop/codex-skill-library/android-safetynet-play-integrity/badge)](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/android-safetynet-play-integrity)

Something wrong with this skill or its page? Tell us.