In Android, you can find various protections that prevent you from unwittingly unlocking your phone. 

We can use a PIN code, pattern unlock, and even unlock the device by looking at it. But in some situations, they are not needed as frankly speaking, not everyone cares about the security. But what to do when your company requires you to have a pattern or PIN and you don’t want to use it? There are some ways to bypass the security, and I would like to present one of them.

We have presented many Xposed Framework modules, as they are easy to use and accessible to almost every device. XDA Forum Member dtreth wrote a module to find the KeyguardViewMediator Class and hook the doKeyguardLocked method and prevent the device from locking. This means that the screen will go off, but after pressing the power button it won’t be necessary to enter the PIN code, pattern gesture, or whatever was set up before. You need to keep in mind that having your device unlocked is not always the best idea, but using this tool wisely may be useful.

You can find this module in the Xposed Framework database and the original thread. Naturally, your device must be rooted and have Xposed Framework installed.
 
Top