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?
source share