5

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?

munkay
  • 1,883
  • 2
  • 16
  • 15

1 Answers1

4

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

Community
  • 1
  • 1
Jorgesys
  • 124,308
  • 23
  • 334
  • 268
  • In that case, what are the alternatives? I wanted a custom lock screen or just customize the current lock screen with some text and call functionality. Many were disabling it, and launching their activities as a lock screen with Home and Back buttons disabled. How else can we implement this? – ashwin mahajan Feb 12 '18 at 08:39