parentalcontrols: correct PIN lockout cap in KDoc
- Commit
567954ac7c0048185be8cacf561ccd2783c5c599- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-08 02:20 UTC (28 days ago)
- Parents
621b091
The class doc claimed the doubling lockout caps at 30 minutes, but BASE_LOCKOUT_MILLIS (60s) with MAX_DOUBLINGS (4) caps at 16 minutes. Doc-only fix; behavior unchanged.
Diff
parentalcontrols/src/main/java/com/vayunmathur/parentalcontrols/auth/ParentPin.kt
diff --git a/parentalcontrols/src/main/java/com/vayunmathur/parentalcontrols/auth/ParentPin.kt b/parentalcontrols/src/main/java/com/vayunmathur/parentalcontrols/auth/ParentPin.ktindex c5f9a20383..3b6c040faf 100644--- a/parentalcontrols/src/main/java/com/vayunmathur/parentalcontrols/auth/ParentPin.kt+++ b/parentalcontrols/src/main/java/com/vayunmathur/parentalcontrols/auth/ParentPin.kt@@ -21,7 +21,7 @@ import java.security.SecureRandom * credential-protected storage is fine here: nothing on the boot path reads the verifier. * * Brute force is throttled: 5 wrong attempts lock verification for a minute, doubling each- * subsequent failure up to 30 minutes. The counter lives beside the verifier so clearing app+ * subsequent failure up to 16 minutes. The counter lives beside the verifier so clearing app * data (which wipes both) also wipes the rules database - there is nothing left to protect. */ class ParentPin(context: Context) : DatabaseHelper(context) {