How do disable lockscreen in android?

munkay picture munkay · Feb 7, 2014 · Viewed 8.8k times · Source

I have my app registered as device administrator, with the appropriate lock screen permissions. I can access the method to lock the device, but cannot disable lockscreen.

Is there an API method available that will disable lock?

Answer

Jorgesys picture Jorgesys · Feb 7, 2014

Is there an API method available that will disable lock? NO

this is not supported, for security reasons.

all of that stuff was deprecated

Disable/Delay Android Lock Screen Programmatically

Android: remove or disable programmatically the Lock Screen on Samsung Galaxy S2 device