Fix 5185505: Add weak biometric sensors to security choices.

This adds a simple biometric sensor (face lock) to the security choices.

Updated to disable biometric sensor by default.

Change-Id: I088e5e99cf5f8c7a06a1a992a9257940eb2cc07f
This commit is contained in:
Jim Miller
2011-09-02 17:33:53 -07:00
parent a9ec5e5071
commit 5541a86efe
7 changed files with 131 additions and 12 deletions

View File

@@ -106,6 +106,8 @@ public class SecuritySettings extends SettingsPreferenceFragment
} else {
resid = R.xml.security_settings_chooser;
}
} else if (mLockPatternUtils.usingBiometricWeak()) {
resid = R.xml.security_settings_biometric_weak;
} else {
switch (mLockPatternUtils.getKeyguardStoredPasswordQuality()) {
case DevicePolicyManager.PASSWORD_QUALITY_SOMETHING:
@@ -120,6 +122,7 @@ public class SecuritySettings extends SettingsPreferenceFragment
resid = R.xml.security_settings_password;
break;
}
// TODO: enable facepass options
}
addPreferencesFromResource(resid);