Add new "pin complex" type to supported keyguard PINs

This adds a feature to allow DevicePolicyAdmins to prevent using
simple PINs, which are defined as those containing more than 3
repeated values. Examples include '1234', '2468', '1111', '9876', etc.

Bug 12081139

Change-Id: I68d8fe2459837cb5e083724e1740e65f0519f7e1
This commit is contained in:
Nicolas Prevot
2014-01-25 01:02:04 +00:00
committed by Jim Miller
parent e2403822ec
commit 8fd852e7c2
5 changed files with 19 additions and 5 deletions

View File

@@ -151,6 +151,7 @@ public class SecuritySettings extends SettingsPreferenceFragment
resid = R.xml.security_settings_pattern;
break;
case DevicePolicyManager.PASSWORD_QUALITY_NUMERIC:
case DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX:
resid = R.xml.security_settings_pin;
break;
case DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC: