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?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top