2021-11-18 13:18:21 -08:00
|
|
|
# TODO(b/196084106): Refine and optimize this configuration. Note that this
|
|
|
|
# configuration is only used when `SOONG_CONFIG_ANDROID_SYSTEM_OPTIMIZE_JAVA=true`.
|
|
|
|
-keep,allowoptimization,allowaccessmodification class ** {
|
2021-12-14 11:10:20 -08:00
|
|
|
!synthetic *;
|
2021-11-18 13:18:21 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
# Various classes subclassed in ethernet-service (avoid marking final).
|
|
|
|
-keep public class android.net.** { *; }
|
|
|
|
|
|
|
|
# Referenced via CarServiceHelperService in car-frameworks-service (avoid removing).
|
2021-12-14 11:10:20 -08:00
|
|
|
-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 *;
|
|
|
|
}
|