How do disable lockscreen in android?

2019-01-26 13:32发布

问题:

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?

回答1:

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