Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
cov/c3 ▾

Modern-Apps.git / library / biometric / AGENTS.md

AGENTS.md1.3 KiBRenderedCodeRaw
1# AGENTS.md — library/biometric/ (':library:biometric')
2
3> Scoped supplement. Global rules in root `AGENTS.md` apply. Stay inside `library/biometric/` + allowed shared modules. Do not root-scan.
4
5<!-- last-reviewed: 2026-10-16 -->
6- Gradle: :library:biometric / dir: library/biometric/
7- Package roots present: (single-purpose crypto helper — one package)
8- Entry files: BiometricDatabaseHelper.kt (no MainActivity/Route — library)
9- Deps: :library (permission-free; extends base's DatabaseHelper keystore, #884)
10- Metadata: metadata_data/library-biometric.md (absent — libraries have none by design)
11- Rust: no / screenshotTest: no
12
13## Overview
14**Purpose:** Biometric-bound database keys — encrypts Room/SQLCipher passphrases behind the system biometric gate. Used by passwords (vault) and apps with locked databases.
15**How to use:** Route database open through `BiometricDatabaseHelper`; pair with `MaFragmentActivity(autoSetContent=false)` + `showContent()` on unlock (passwords, photos pattern).
16**Entry points:** `BiometricDatabaseHelper.kt`.
17**Gotchas:** Biometric enrollment changes invalidate keys by design — handle the locked-out path, don't crash on it.
18
19## Key files
20- com/vayunmathur/library/biometric/BiometricDatabaseHelper.kt
21
22## Verify (this module only)
23```
24./gradlew :library:biometric:compileDevKotlin
25./gradlew :library:biometric:lint
26```