summaryrefslogtreecommitdiff
path: root/cmds/locksettings
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2017-08-21 10:46:11 -0700
committerchaviw <chaviw@google.com>2017-08-24 14:27:36 -0700
commitff58ed11f2c50ef180a0521b5b5d1c5ce8f2be61 (patch)
tree7b78680249ec74eacccd690e873f56cb7610f363 /cmds/locksettings
parentc6c9e089db3539c74309ad00d1e073c92146d748 (diff)
Add get-disabled shell command to locksettings
Added shell command that outputs whether the lock screen is disabled. Test: Ran "adb shell locksettings get-disabled" while phone had lock screen and when it did not. Merged-In: I3532e41e2ee4770bd0801dd431fdbc884c2bafa4 Fixes: 64848695 Change-Id: I3532e41e2ee4770bd0801dd431fdbc884c2bafa4
Diffstat (limited to 'cmds/locksettings')
-rw-r--r--cmds/locksettings/src/com/android/commands/locksettings/LockSettingsCmd.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmds/locksettings/src/com/android/commands/locksettings/LockSettingsCmd.java b/cmds/locksettings/src/com/android/commands/locksettings/LockSettingsCmd.java
index b9fedd365925..6a4a4beaa763 100644
--- a/cmds/locksettings/src/com/android/commands/locksettings/LockSettingsCmd.java
+++ b/cmds/locksettings/src/com/android/commands/locksettings/LockSettingsCmd.java
@@ -34,6 +34,8 @@ public final class LockSettingsCmd extends BaseCommand {
" locksettings set-password [--old OLD_CREDENTIAL] NEW_PASSWORD\n" +
" locksettings clear [--old OLD_CREDENTIAL]\n" +
" locksettings verify [--old OLD_CREDENTIAL]\n" +
+ " locksettings set-disabled DISABLED\n" +
+ " locksettings get-disabled\n" +
"\n" +
"flags: \n" +
" --user USER_ID: specify the user, default value is current user\n" +
@@ -50,7 +52,11 @@ public final class LockSettingsCmd extends BaseCommand {
"\n" +
"locksettings clear: clears the unlock credential\n" +
"\n" +
- "locksettings verify: verifies the credential and unlocks the user\n";
+ "locksettings verify: verifies the credential and unlocks the user\n" +
+ "\n" +
+ "locksettings set-disabled: sets whether the lock screen should be disabled\n" +
+ "\n" +
+ "locksettings get-disabled: retrieves whether the lock screen is disabled\n";
public static void main(String[] args) {
(new LockSettingsCmd()).run(args);