summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius D'souza <jdsouza@google.com>2021-10-11 11:38:57 -0700
committerJulius D'Souza <jdsouza@google.com>2021-10-11 20:07:17 +0000
commit7b7103321bfcddfc5b453555e3e0d151651c2df2 (patch)
tree355afd928b080792a15d2d6e39495a68b083bcc0
parent4b96a354409bba6632c59d1ff2b30be54d6c8c16 (diff)
downloadsetupwizard-7b7103321bfcddfc5b453555e3e0d151651c2df2.tar.gz
Use PASSWORD_COMPLEXITY_MEDIUM for pins.
Currently we use PASSWORD_COMPLEXITY_LOW which results in reporting a zero length requirement for pins, which is untrue. Use the MEDIUM complexity instead which both sets the right reported length and sets a consistent expectation for the framework. This also matches what CarSettings does with pins. Test: Check the pin lock screen with the included change. Bug: 202742946 Signed-off-by: Julius D'Souza <jdsouza@google.com> Change-Id: Ife808e71025df5d4a7190a4b5164bc22f4d9479f Merged-In: Ife808e71025df5d4a7190a4b5164bc22f4d9479f
-rw-r--r--library/utils/src/com/android/car/setupwizardlib/InitialLockSetupClient.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/utils/src/com/android/car/setupwizardlib/InitialLockSetupClient.java b/library/utils/src/com/android/car/setupwizardlib/InitialLockSetupClient.java
index 6c7830f..171710c 100644
--- a/library/utils/src/com/android/car/setupwizardlib/InitialLockSetupClient.java
+++ b/library/utils/src/com/android/car/setupwizardlib/InitialLockSetupClient.java
@@ -316,7 +316,7 @@ public class InitialLockSetupClient implements ServiceConnection {
new LockConfig(
/* enabled= */ true,
km.getMinLockLength(
- /* isPin= */ true, PasswordComplexity.PASSWORD_COMPLEXITY_LOW));
+ /* isPin= */ true, PasswordComplexity.PASSWORD_COMPLEXITY_MEDIUM));
patternConfig =
new LockConfig(
/* enabled= */ true,