From 25c61e4a562b352ae207362e58c7fd4cd78499e8 Mon Sep 17 00:00:00 2001 From: Yohei Yukawa Date: Mon, 14 Feb 2022 22:30:49 +0000 Subject: [PATCH] Revert "Prune proguard.flags down to more essential pieces." Revert "Prune proguard.flags down to more essential pieces." Revert submission 16305632-b205725937-prune-proguard Reason for revert: Caused SysUI crash looping in aosp_coral-userdebug. Reverted Changes: I889164a6f:Prune proguard.flags down to more essential pieces... Id9566fb30:Prune proguard.flags down to more essential pieces... Bug: 205725937 Fix: 219573930 Test: Manually verified that SysUI is no longer crash looping Change-Id: Iff4bc5fda397bf3ce8b391e43a0def654b3b4760 --- packages/SystemUI/proguard.flags | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/proguard.flags b/packages/SystemUI/proguard.flags index cf6951233e237..6352f81b44745 100644 --- a/packages/SystemUI/proguard.flags +++ b/packages/SystemUI/proguard.flags @@ -1,16 +1,22 @@ # Preserve line number information for debugging stack traces. -keepattributes SourceFile,LineNumberTable +-keep class com.android.systemui.recents.OverviewProxyRecentsImpl +-keep class com.android.systemui.statusbar.car.CarStatusBar +-keep class com.android.systemui.statusbar.phone.StatusBar +-keep class com.android.systemui.statusbar.tv.TvStatusBar -keep class com.android.systemui.car.CarSystemUIFactory -keep class com.android.systemui.SystemUIFactory -keep class com.android.systemui.tv.TvSystemUIFactory +-keep class * extends com.android.systemui.CoreStartable +-keep class * implements com.android.systemui.CoreStartable$Injector -keepclasseswithmembers class * { public (android.content.Context, android.util.AttributeSet); } -keep class ** extends androidx.preference.PreferenceFragment - +-keep class com.android.systemui.tuner.* -keep class com.android.systemui.plugins.** { *; } @@ -19,6 +25,10 @@ } -keep class androidx.core.app.CoreComponentFactory +-keep public class * extends com.android.systemui.CoreStartable { + public (android.content.Context); +} + # Keep the wm shell lib -keep class com.android.wm.shell.* # Keep the protolog group methods that are called by the generated code @@ -26,6 +36,11 @@ *; } +-keep,allowoptimization,allowaccessmodification class com.android.systemui.dagger.GlobalRootComponent { !synthetic *; } +-keep,allowoptimization,allowaccessmodification class com.android.systemui.dagger.GlobalRootComponent$SysUIComponentImpl { !synthetic *; } +-keep,allowoptimization,allowaccessmodification class com.android.systemui.dagger.Dagger** { !synthetic *; } +-keep,allowoptimization,allowaccessmodification class com.android.systemui.tv.Dagger** { !synthetic *; } + # Allows proguard to make private and protected methods and fields public as # part of optimization. This lets proguard inline trivial getter/setter methods. -allowaccessmodification