summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeverly <beverlyt@google.com>2022-01-20 15:09:54 +0000
committerXin Li <delphij@google.com>2022-03-02 18:17:50 -0800
commit2dcb5a8188eafb8099e7ed284a528f7372c308a4 (patch)
treead5e51fb1fb98003ae653a39451a628be65ef8f6
parent74bbae3074872aa4bdf1fcf2702acf2b2407b72b (diff)
downloadbase-2dcb5a8188eafb8099e7ed284a528f7372c308a4.tar.gz
Allow extra keyguard logs to be enabled via adb
To enable extra logs: adb shell setprop log.tag.Keyguard DEBUG && adb shell am crash com.android.systemui Test: manually enable logs, check they show in logcat Bug: 212835832 (cherry picked from commit 382c4e80a79678b732f48dace75ef2667b62258e) (cherry picked from commit 17df79ccc0ce4e5001b4f68c71a174d1b178f7b8) Merged-In: I29bb0ffefd57d577b5abe942e227eb2b5baeab4e Change-Id: I29bb0ffefd57d577b5abe942e227eb2b5baeab4e
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardConstants.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardConstants.java b/packages/SystemUI/src/com/android/keyguard/KeyguardConstants.java
index 0340904cbd9d..b2658c9f9bdb 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardConstants.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardConstants.java
@@ -16,6 +16,8 @@
package com.android.keyguard;
+import android.util.Log;
+
/**
* Defines constants for the Keyguard.
*/
@@ -25,7 +27,7 @@ public class KeyguardConstants {
* Turns on debugging information for the whole Keyguard. This is very verbose and should only
* be used temporarily for debugging.
*/
- public static final boolean DEBUG = false;
+ public static final boolean DEBUG = Log.isLoggable("Keyguard", Log.DEBUG);
public static final boolean DEBUG_SIM_STATES = true;
public static final boolean DEBUG_BIOMETRIC_WAKELOCK = true;
}