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

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- Gradle: :library:biometric / dir: library/biometric/
6- Package roots present: (single-purpose crypto helper — one package)
7- Entry files: BiometricDatabaseHelper.kt (no MainActivity/Route — library)
8- Deps: :library (permission-free; extends base's DatabaseHelper keystore)
9- Metadata: metadata_data/library-biometric.md (absent — libraries have none by design)
10- Rust: no / screenshotTest: no
11
12## Overview
13**Purpose:** Biometric-bound database keys — encrypts Room/SQLCipher passphrases behind the system biometric gate. Used by passwords (vault) and apps with locked databases.
14**How to use:** Route database open through `BiometricDatabaseHelper`; pair with `MaFragmentActivity(autoSetContent=false)` + `showContent()` on unlock (passwords, photos pattern).
15**Entry points:** `BiometricDatabaseHelper.kt`.
16**Gotchas:** Biometric enrollment changes invalidate keys by design — handle the locked-out path, don't crash on it.
17
18## Key files
19- com/vayunmathur/library/biometric/BiometricDatabaseHelper.kt
20
21## Verify (this module only)
22```
23./gradlew :library:biometric:compileDebugKotlin
24./gradlew :library:biometric:testDebugUnitTest
25./gradlew :library:biometric:lint
26```