android-security-patterns-v1Certifiedv1.0.0

Android / Kotlin security patterns

Always-on secure coding patterns for Android / Kotlin (safe; no dependency edits).

Protects against

Rule body

# Android / Kotlin security patterns

Safe, always-on code patterns that reduce security risk without changing your dependency graph.

These rules use ONLY pattern-level verbs (ALWAYS/NEVER). They MUST NOT prescribe dependency upgrades.

### CVE-2024-0045 — safe patterns

- ALWAYS verify Bluetooth permissions (BLUETOOTH, BLUETOOTH_ADMIN, BLUETOOTH_SCAN) before device operations.
- NEVER assume implicit permission inheritance from manifest declarations to runtime operations.
- ALWAYS check runtime permissions at point-of-use, not just at app initialization.