on-internet
← Community

How to check if screen lock is enabled in the settings using adb

Stack Overflow ·

I need to know how to check if any type of screen lock is enabled in the settings part of the device. I need to check this using an adb command (by using adb shell). I also need to know the type of lock applied. I have tried dumpsys but did not get any success. I want to know if the screen lock is enabled in the settings even if the device is currently unlocked, just check if any security is there, in any state.

Comments

Sign in or sign up to comment and upvote.

No comments yet.