How do we maintain the seamless fingerprint effect after using DevicePolicyManager to execute lockNow () in Android 6.0?
Assuming that on devices with a fingerprint scanner and when the application is called, lockNow () has "USES_POLICY_FORCE_LOCK" and it was granted the status of the Device Administrator.
This is the documentation for the lockNow () function:
public void lockNow ()
Lock the device immediately, as if the screen lock timeout expired at the time of this call.
The administrator of the calling device must request USES_POLICY_FORCE_LOCK in order to be able to call this method; if this is not the case, a security exception will be thrown.
Getting device administrator status and performing a lock is just fine. For reference, see this SO question for the approach used.
The problem is that after locking the phone, the fingerprint scanner stops smoothly unlocking the phone. Instead, the fingerprint scanner prompts me to enter a backup PIN. Is there anything new that I have to do in Android 6.0 to preserve the effect of unlocking the fingerprints after making the lockNow () call?
I looked at all the DevicePolicyManager flags ( in the documentation ), and it seems to suggest disabling things, rather than enabling things.
Thanks!
source share