Winson Chung | 2dbcf09 | 2018-10-24 13:00:41 -0700 | [diff] [blame] | 1 | -keep class com.android.systemui.recents.OverviewProxyRecentsImpl |
Rakesh Iyer | 1186faa | 2015-12-07 16:48:46 -0800 | [diff] [blame] | 2 | -keep class com.android.systemui.statusbar.car.CarStatusBar |
Jason Monk | 2a6ea9c | 2017-01-26 11:14:51 -0500 | [diff] [blame] | 3 | -keep class com.android.systemui.statusbar.phone.StatusBar |
Christopher Tate | acad183 | 2012-02-17 16:01:27 -0800 | [diff] [blame] | 4 | -keep class com.android.systemui.statusbar.tv.TvStatusBar |
Yao Chen | 634acb9 | 2016-04-13 16:17:47 -0700 | [diff] [blame] | 5 | -keep class com.android.systemui.car.CarSystemUIFactory |
Xiyuan Xia | 1b30f79 | 2016-01-06 08:50:30 -0800 | [diff] [blame] | 6 | -keep class com.android.systemui.SystemUIFactory |
Sergey Nikolaienkov | 7842bac | 2019-12-19 16:34:11 +0100 | [diff] [blame] | 7 | -keep class com.android.systemui.tv.TvSystemUIFactory |
Dave Mankoff | f2da1d5 | 2021-11-09 14:33:45 -0500 | [diff] [blame] | 8 | -keep class * extends com.android.systemui.CoreStartable |
| 9 | -keep class * implements com.android.systemui.CoreStartable$Injector |
Winson | e6c9073 | 2015-09-24 16:06:29 -0700 | [diff] [blame] | 10 | |
Jason Monk | 87ccd55 | 2015-12-11 21:39:54 -0500 | [diff] [blame] | 11 | -keepclasseswithmembers class * { |
| 12 | public <init>(android.content.Context, android.util.AttributeSet); |
| 13 | } |
| 14 | |
Aurimas Liutikas | fd52c14 | 2018-04-17 09:50:46 -0700 | [diff] [blame] | 15 | -keep class ** extends androidx.preference.PreferenceFragment |
Jason Monk | 3ebd239 | 2016-01-22 10:01:44 -0500 | [diff] [blame] | 16 | -keep class com.android.systemui.tuner.* |
Jason Monk | 86bc331 | 2016-08-16 13:17:56 -0400 | [diff] [blame] | 17 | -keep class com.android.systemui.plugins.** { |
Jason Monk | e6089af | 2018-07-31 14:38:11 -0400 | [diff] [blame] | 18 | *; |
Jason Monk | 86bc331 | 2016-08-16 13:17:56 -0400 | [diff] [blame] | 19 | } |
Jason Monk | 9424af7 | 2018-12-19 14:17:26 -0500 | [diff] [blame] | 20 | -keep class com.android.systemui.fragments.FragmentService$FragmentCreator { |
| 21 | *; |
| 22 | } |
Aurimas Liutikas | fd52c14 | 2018-04-17 09:50:46 -0700 | [diff] [blame] | 23 | -keep class androidx.core.app.CoreComponentFactory |
Dave Mankoff | a5d8a39 | 2019-10-10 12:21:09 -0400 | [diff] [blame] | 24 | |
Dave Mankoff | f2da1d5 | 2021-11-09 14:33:45 -0500 | [diff] [blame] | 25 | -keep public class * extends com.android.systemui.CoreStartable { |
Dave Mankoff | a5d8a39 | 2019-10-10 12:21:09 -0400 | [diff] [blame] | 26 | public <init>(android.content.Context); |
Bill Lin | a17858d1 | 2020-07-14 10:30:10 +0800 | [diff] [blame] | 27 | } |
| 28 | |
Winson Chung | b754f52 | 2020-08-03 22:17:08 -0700 | [diff] [blame] | 29 | # Keep the wm shell lib |
Dave Mankoff | 8552807 | 2020-08-06 10:32:25 -0400 | [diff] [blame] | 30 | -keep class com.android.wm.shell.* |
Winson Chung | b754f52 | 2020-08-03 22:17:08 -0700 | [diff] [blame] | 31 | # Keep the protolog group methods that are called by the generated code |
| 32 | -keepclassmembers class com.android.wm.shell.protolog.ShellProtoLogGroup { |
| 33 | *; |
| 34 | } |
Dave Mankoff | 8552807 | 2020-08-06 10:32:25 -0400 | [diff] [blame] | 35 | |
Jared Duke | 2fee740 | 2021-10-18 14:35:04 -0700 | [diff] [blame^] | 36 | -keep,allowoptimization,allowaccessmodification class com.android.systemui.dagger.GlobalRootComponent { !synthetic *; } |
| 37 | -keep,allowoptimization,allowaccessmodification class com.android.systemui.dagger.GlobalRootComponent$SysUIComponentImpl { !synthetic *; } |
| 38 | -keep,allowoptimization,allowaccessmodification class com.android.systemui.dagger.Dagger** { !synthetic *; } |
| 39 | -keep,allowoptimization,allowaccessmodification class com.android.systemui.tv.Dagger** { !synthetic *; } |
| 40 | |
| 41 | # Allows proguard to make private and protected methods and fields public as |
| 42 | # part of optimization. This lets proguard inline trivial getter/setter methods. |
| 43 | -allowaccessmodification |
Jared Duke | dc1646f | 2021-11-30 12:35:45 -0800 | [diff] [blame] | 44 | |
| 45 | # Removes runtime checks added through Kotlin to JVM code genereration to |
| 46 | # avoid linear growth as more Kotlin code is converted / added to the codebase. |
| 47 | # These checks are generally applied to Java platform types (values returned |
| 48 | # from Java code that don't have nullness annotations), but we remove them to |
| 49 | # avoid code size increases. |
| 50 | # |
| 51 | # See also https://kotlinlang.org/docs/reference/java-interop.html |
| 52 | # |
| 53 | # TODO(b/199941987): Consider standardizing these rules in a central place as |
| 54 | # Kotlin gains adoption with other platform targets. |
| 55 | -assumenosideeffects class kotlin.jvm.internal.Intrinsics { |
| 56 | # Remove check for method parameters being null |
| 57 | static void checkParameterIsNotNull(java.lang.Object, java.lang.String); |
| 58 | |
| 59 | # When a Java platform type is returned and passed to Kotlin NonNull method, |
| 60 | # remove the null check |
| 61 | static void checkExpressionValueIsNotNull(java.lang.Object, java.lang.String); |
| 62 | static void checkNotNullExpressionValue(java.lang.Object, java.lang.String); |
| 63 | |
| 64 | # Remove check that final value returned from method is null, if passing |
| 65 | # back Java platform type. |
| 66 | static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String, java.lang.String); |
| 67 | static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String); |
| 68 | |
| 69 | # Null check for accessing a field from a parent class written in Java. |
| 70 | static void checkFieldIsNotNull(java.lang.Object, java.lang.String, java.lang.String); |
| 71 | static void checkFieldIsNotNull(java.lang.Object, java.lang.String); |
| 72 | |
| 73 | # Removes code generated from !! operator which converts Nullable type to |
| 74 | # NonNull type. These would throw an NPE immediate after on access. |
| 75 | static void checkNotNull(java.lang.Object, java.lang.String); |
| 76 | static void checkNotNullParameter(java.lang.Object, java.lang.String); |
| 77 | |
| 78 | # Removes lateinit var check being used before being set. Check is applied |
| 79 | # on every field access without this. |
| 80 | static void throwUninitializedPropertyAccessException(java.lang.String); |
| 81 | } |