| -include proguard_kotlin.flags | |
| # VendorServices implements CoreStartable and may be instantiated reflectively in | |
| # SystemUIApplication#startAdditionalStartable. | |
| # TODO(b/373579455): Rewrite this to a @UsesReflection keep annotation. | |
| -keep class com.android.systemui.VendorServices { | |
| public void <init>(); | |
| } | |
| # TODO(b/373579455): Evaluate if <init> needs to be kept. | |
| -keep class androidx.core.app.CoreComponentFactory { | |
| void <init>(); | |
| } | |
| # Keep the wm shell lib | |
| # TODO(b/373579455): Evaluate if <init> needs to be kept. | |
| -keep class com.android.wm.shell.* { | |
| void <init>(); | |
| } | |
| # Keep the protolog group methods that are called by the generated code | |
| -keepclassmembers class com.android.wm.shell.protolog.ShellProtoLogGroup { | |
| *; | |
| } | |
| # Prevent optimization or access modification of any referenced code that may | |
| # conflict with code in the bootclasspath. | |
| # TODO(b/222468116): Resolve such collisions in the build system. | |
| -keepnames class android.**.nano.** { *; } | |
| -keepnames class com.android.**.nano.** { *; } | |
| -keepnames class com.android.internal.protolog.** { *; } | |
| -keepnames class android.hardware.common.** { *; } | |
| # TODO(b/316553881): Statically linking flags into SystemUI and bootclasspath might not be a | |
| # good idea in the first place | |
| -keepnames class com.android.window.flags.Flags { public *; } | |
| # Allows proguard to make private and protected methods and fields public as | |
| # part of optimization. This lets proguard inline trivial getter/setter methods. | |
| -allowaccessmodification | |
| # Strip verbose logs. | |
| -assumenosideeffects class android.util.Log { | |
| static *** v(...); | |
| static *** isLoggable(...); | |
| } | |
| -assumenosideeffects class android.util.Slog { | |
| static *** v(...); | |
| } | |
| -maximumremovedandroidloglevel 2 |