问题
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
来源:https://stackoverflow.com/questions/21632217/how-do-disable-lockscreen-in-android