1
0
mirror of https://github.com/yurisieucuti/treble_evolution.git synced 2024-11-24 08:36:19 +00:00
treble_evolution/patches/platform_frameworks_base/0036-Catch-NPE-in-SystemUI.patch
2024-04-24 15:13:17 +00:00

32 lines
1.4 KiB
Diff

From 215e209a48c17495c86fd37db72c61f593c35a10 Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Fri, 6 Oct 2023 10:57:13 -0400
Subject: [PATCH 36/51] Catch NPE in SystemUI
No idea why it triggers, but it crashes SystemUI on boot for my TV
device
---
.../com/android/systemui/keyguard/KeyguardViewMediator.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
index d7a1906f68e4..2a2f13466025 100644
--- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
+++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
@@ -3446,7 +3446,11 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
Trace.beginSection("KeyguardViewMediator#handleMotifyStartedWakingUp");
synchronized (KeyguardViewMediator.this) {
if (DEBUG) Log.d(TAG, "handleNotifyWakingUp");
- mKeyguardViewControllerLazy.get().onStartedWakingUp();
+ try {
+ mKeyguardViewControllerLazy.get().onStartedWakingUp();
+ } catch(Throwable t) {
+ android.util.Log.e("PHH", "handleNotifyStartedWakingUp crashed bip", t);
+ }
}
Trace.endSection();
}
--
2.25.1