Silence camera policy keyguard check logspam
This warning is just annoying for us when fixing SystemUI FCs
or when checking logcat during boot
Related to:
https://github.com/ezio84/abc_frameworks_base/commit/b5d2f63815d12c2f98421056cb497c253c9e88ae
Change-Id: I92046d792524e347e52a50f904b272ea53e766f9
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
index 5bdd81e..43eacf0 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
@@ -5403,7 +5403,9 @@
public boolean isKeyguardShowing() {
if (mStatusBarKeyguardViewManager == null) {
- Slog.i(TAG, "isKeyguardShowing() called before startKeyguard(), returning true");
+ if (DEBUG) {
+ Slog.i(TAG, "isKeyguardShowing() called before startKeyguard(), returning true");
+ }
return true;
}
return mStatusBarKeyguardViewManager.isShowing();
@@ -7456,8 +7458,10 @@
// startKeyguard() hasn't been called yet, so we don't know.
// Make sure anything that needs to know isKeyguardSecure() checks and re-checks this
// value onVisibilityChanged().
- Slog.w(TAG, "isKeyguardSecure() called before startKeyguard(), returning false",
- new Throwable());
+ if (DEBUG) {
+ Slog.w(TAG, "isKeyguardSecure() called before startKeyguard(), returning false",
+ new Throwable());
+ }
return false;
}
return mStatusBarKeyguardViewManager.isSecure();