android-security-best-practices
Installation
SKILL.md
Android Security Best Practices
When To Use
- Use this skill when the request is about: android security review, secret handling android app, exported component security android.
- Primary outcome: Apply Android app security guidance around secrets, storage, network trust, exported components, and least privilege.
- Read
references/patterns.mdwhen you need the attack-surface checklist or the storage/network/component decision matrix. - Read
references/scenarios.mdfor manifest, backup, WebView, and release-hardening review paths. - Handoff skills when the scope expands:
android-modernization-upgradeandroid-ci-cd-release-playstore
Workflow
- Inventory the attack surface first: exported components, intent/deep link entry points, file sharing, WebView usage, local storage, logs, backups, and network trust config.
- Remove avoidable risk before hardening details: prefer platform pickers and choosers, internal storage, server-issued short-lived tokens, and least-privilege permissions instead of shipping broad access or long-lived secrets.
- Lock the remaining boundaries explicitly with
android:exported, component permissions,FileProvider,networkSecurityConfig, debug-only trust anchors, and immutablePendingIntents. - Review sensitive surfaces that often regress in Android apps: WebView JavaScript bridges, backup/data extraction rules, cleartext exceptions, log redaction, and same-developer IPC assumptions.
- Validate the release posture with reproducible checks, then document residual risks and whether backend enforcement or Play Integrity is advisory or blocking.