Merge "Refine (optional) system_server Proguard config" am: e997efb8e8 am: db85028b62 am: 4481a84007

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1922860

Change-Id: I9513372e735cbb7f8334bb163003f5536da95bf1
This commit is contained in:
Treehugger Robot
2021-12-21 23:24:16 +00:00
committed by Automerger Merge Worker

View File

@@ -1,7 +1,7 @@
# TODO(b/196084106): Refine and optimize this configuration. Note that this # TODO(b/196084106): Refine and optimize this configuration. Note that this
# configuration is only used when `SOONG_CONFIG_ANDROID_SYSTEM_OPTIMIZE_JAVA=true`. # configuration is only used when `SOONG_CONFIG_ANDROID_SYSTEM_OPTIMIZE_JAVA=true`.
-keep,allowoptimization,allowaccessmodification class ** { -keep,allowoptimization,allowaccessmodification class ** {
*; !synthetic *;
} }
# Various classes subclassed in ethernet-service (avoid marking final). # Various classes subclassed in ethernet-service (avoid marking final).
@@ -9,3 +9,13 @@
# Referenced via CarServiceHelperService in car-frameworks-service (avoid removing). # Referenced via CarServiceHelperService in car-frameworks-service (avoid removing).
-keep public class com.android.server.utils.Slogf { *; } -keep public class com.android.server.utils.Slogf { *; }
# Allows making private and protected methods/fields public as part of
# optimization. This enables inlining of trivial getter/setter methods.
-allowaccessmodification
# Disallow accessmodification for soundtrigger classes. Logging via reflective
# public member traversal can cause infinite loops. See b/210901706.
-keep,allowoptimization class com.android.server.soundtrigger_middleware.** {
!synthetic *;
}