bedkillerspacex-boop/codex-skill-library/android-biometric-prompt
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.
Android BiometricPrompt integration for owned apps: authenticators, crypto-based binding (BiometricPrompt + Cipher/Keystore), negative buttons, fallback, and common pitfalls (UI-only checks, weak authenticators, key invalidation). Use when adding fingerprint/face unlock to secure features — not for bypassing biometrics on third-party apps.
Install
npx vskill@latest install bedkillerspacex-boop/codex-skill-library/android-biometric-promptSKILL.md
The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/android-biometric-prompt.
Android BiometricPrompt
Scope And Authorization
- In scope: Apps you develop or are authorized to security-review.
- Out of scope: Bypassing biometrics on apps you do not own; producing malware lockscreen bypasses.
- Test on real devices; emulator biometric support varies.
- Pair with
code-quality-standardsandandroid-credential-managerwhen using modern credential APIs.
When To Use
- Gate app secrets or actions behind biometric authentication.
- Binding keys in Android Keystore to user presence / biometric auth.
- Migrating from deprecated FingerprintManager APIs.
- Reviewing whether “biometric” is cryptographic or cosmetic.
Do Not Use As Primary
| Need | Skill instead | |
|---|---|---|
| Credential Manager / passkeys | android-credential-manager | |
| Play Integrity / SafetyNet | android-safetynet-play-integrity | |
| General pentest tricks | android-pentesting-tricks | |
| Implementation quality baseline | code-quality-standards |
Domain Focus
| Concept | Meaning | |
|---|---|---|
| BiometricPrompt | System UI for biometric (and optional device credential) | |
| Authenticators | BIOMETRIC_STRONG / WEAK, DEVICE_CREDENTIAL | |
| CryptoObject | Cipher/Mac/Signature tied to Keystore key requiring auth | |
| Negative button | Cancel / use password path | |
| Key invalidation | New biometric enrollment may invalidate keys if configured | |
| UI-only anti-pattern | onAuthenticationSucceeded without unlocking a key |
Workflow
1. Confirm threat model and success criteria
- Record what is protected (session re-auth, decrypt local tokens, approve payment).
- Success: sensitive key ops require successful biometric (or allowed device credential); no silent success path; lockout handled.
- Decide if device credential fallback is allowed.
2. Choose authenticator strength
| Strength | Use | |
|---|---|---|
| BIOMETRIC_STRONG | Prefer for crypto-bound secrets Class 3 | |
| BIOMETRIC_WEAK | Convenience; not for high-value crypto without review | |
| DEVICE_CREDENTIAL | PIN/pattern/password fallback |
3. Prefer crypto-bound biometric
- Decrypt tokens only after
onAuthenticationSucceededwith CryptoObject unlocking the cipher. - Do not store master secrets in SharedPreferences gated only by a boolean “bio ok.”
4. Wire BiometricPrompt UI
- Handle error codes: lockout, no hardware, none enrolled, user cancel.
- Offer app password path if product requires, with rate limits.
5. Review pitfalls
| Pitfall | Fix | |
|---|---|---|
| UI-only biometric | Bind Keystore keys | |
| Accepting WEAK for payments | Raise authenticator / step-up server-side | |
| Ignoring enrollment change | setInvalidatedByBiometricEnrollment(true) + re-provision | |
| Auth on wrong thread | Use main executor patterns per docs | |
| Logging biometric data | Never log raw biometric material (you should not receive it) |
6. Verify
- Instrumented tests limited; prefer device QA checklist.
- Security review: static check for
FingerprintManagerlegacy and for success callbacks without crypto.
7. Hand off
- Document authenticator policy and key invalidation behavior.
- Server still authorizes high-risk actions (biometric is local step-up).
- Align copy with UX for lockout and fallback.
Good / Bad
| Topic | Good | Bad | |
|---|---|---|---|
| Binding | Keystore + CryptoObject | if (bioSuccess) showBalance() | |
| Strength | STRONG for secrets | WEAK for anything high value | |
| Fallback | Explicit product policy | Silent skip if no biometric | |
| Invalidation | Re-enroll re-wrap secrets | Keys work for attacker-added biometrics when not intended |
Output Checklist
- [ ] Protected assets and authenticator policy documented
- [ ] Crypto-bound keys for sensitive data
- [ ] PromptInfo configured (negative button / device credential)
- [ ] Error/lockout/fallback handled
- [ ] Enrollment invalidation behavior tested
- [ ] No UI-only biometric gate for secrets
- [ ] QA on physical devices
- [ ]
code-quality-standardsapplied
Rules
- Owned apps only; no third-party biometric bypass work.
- Treat biometric as local UX + key unlock, not server identity alone.
- Prefer STRONG + Keystore for secrets.
- Never store or log biometric templates (OS-managed).
- Coordinate with Credential Manager when migrating to passkeys.
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-biometric-prompt/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-biometric-prompt)