Android DevicePolicyManager locknow () not working in Lollipop

I lock and unlock the lock screen.

Unlock via

boolean result = devicePolicyManager.resetPassword ("", 0);

devicePolicyManager.lockNow ();

In Lollipop, it turns off the screen (expected), and when you turn it on - instead of a swipe screen - it displays a numeric keypad, but you don’t need to enter the correct PIN code or PIN code to unlock it -

The same code works in pre Lollipop, showing the swipe screen once and then completely unlocks after that.

Is this a bug in Lollipop?

+5
source share

Source: https://habr.com/ru/post/1207627/


All Articles