Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef1a1232 authored by Eric Biggers's avatar Eric Biggers
Browse files

Add IsLockScreenDisabled to dump of LockSettingsService

Bug: 361730315
Flag: EXEMPT only affects bugreport content
Test: dumpsys lock_settings             # false
      locksettings set-disabled true
      dumpsys lock_settings             # true
      locksettings set-disabled false
      dumpsys lock_settings             # false
      locksettings set-pin 1234
      dumpsys lock_settings             # not shown
Change-Id: Ia6ee8ddde261f0bda45fd9f2a961a7ceeb967827
parent 448a9ffa
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -3367,8 +3367,13 @@ public class LockSettingsService extends ILockSettings.Stub {
            // It's OK to dump the credential type since anyone with physical access can just
            // observe it from the keyguard directly.
            pw.println("Quality: " + getKeyguardStoredQuality(userId));
            pw.println("CredentialType: " + LockPatternUtils.credentialTypeToString(
                    getCredentialTypeInternal(userId)));
            final int credentialType = getCredentialTypeInternal(userId);
            pw.println("CredentialType: "
                    + LockPatternUtils.credentialTypeToString(credentialType));
            if (credentialType == CREDENTIAL_TYPE_NONE) {
                pw.println("IsLockScreenDisabled: "
                        + getBoolean(LockPatternUtils.DISABLE_LOCKSCREEN_KEY, false, userId));
            }
            pw.println("SeparateChallenge: " + getSeparateProfileChallengeEnabledInternal(userId));
            pw.println(TextUtils.formatSimple("Metrics: %s",
                    getUserPasswordMetrics(userId) != null ? "known" : "unknown"));