Lock Settings Management¶
Removes cached unified challenge for the managed profile
Sets the lock screen as password, using the given PASSWORD to unlock
Sets the lock screen as PIN, using the given PIN to unlock
Sets the lock screen as pattern, using the given PATTERN to unlock
SQLite3 Update Locksetting
adb shell sqlite3 /data/system/locksettings.db "UPDATE locksettings SET value = '1' WHERE name = 'lockscreen.disabled'"
adb shell sqlite3 /data/system/locksettings.db "UPDATE locksettings SET value = '0' WHERE name = 'lockscreen.password_type'"
adb shell sqlite3 /data/system/locksettings.db "UPDATE locksettings SET value = '0' WHERE name = 'lockscreen.password_type_alternate'"
adb shell sqlite3 /data/system/locksettings.db "UPDATE locksettings SET value = '1' WHERE name = 'lockscreen.disabled'"
Resource(s)
- https://stackoverflow.com/questions/27687951/android-manipulate-screen-lock-settings-via-adb
- https://stackoverflow.com/questions/22142940/set-lockscreen-to-none-programmatically
- https://forum.xda-developers.com/t/no-root-required-completely-disable-and-enable-your-lock-screen.3739257/
- https://forum.xda-developers.com/t/disable-swipe-up-lockscreen.4032599/
- https://forum.xda-developers.com/t/screen-lock-disable.3460054/