As we know Android ICS provides Face Unlock option to lock the screen in Settings->Security->Screen lock.
Is there a way to programmatically enable Face Locking using DevicePolicyManager, like enabling password restriction from MDM?
I have gone through the DevicePolicyManager class in API Level 16, but could not find it.
Is there any alternative to achieve this?
Thanks.
Face Unlock is controlled by the
PASSWORD_QUALITY_BIOMETRIC_WEAKflag, and is used withsetPasswordQuality.For example, this code will require that the user has a Face Unlock password (or better) set, and will prompt them to update their password if needed: