Unlocking Android phone immediately after reboot I have an Android phone (version 5.1.1) with cyanogenmod (version 12.1). And after rebooting I cannot immediately unlock my phone. If I try to unlock my screen (lock style = pattern) immediately after rebooting I always get the message: "try again in x seconds" where x is counting down from 30 to 0. I find this very annoying,  is there any way to disable this?

Edit: I just found out that I can actually unlock my screen before it asks me to enter my pin for unlocking my sim card. But when I do this it locks again as soon as it a asks me to enter my pin for unlocking my sim, and again have to wait 30 sec.
Note: This is a workaround.  

Some users have posted about the bug (saying this bug is present from long time)
 in reddit and oneplus forums.
Since it is a bug, there is no definitive solution to this.  

One possible work around is to simply turn off the screen by pressing &nbsp;lock button
and turn back on by pressing &nbsp;lock button&nbsp; again, and enter your pattern.