blob: 5d01d3e7f85c94afcea01df7dfd052140ea6a994 [file] [log] [blame]
Jared Duke4514bdf2021-11-18 13:18:21 -08001# TODO(b/196084106): Refine and optimize this configuration. Note that this
2# configuration is only used when `SOONG_CONFIG_ANDROID_SYSTEM_OPTIMIZE_JAVA=true`.
3-keep,allowoptimization,allowaccessmodification class ** {
Jared Dukeedb13392021-12-14 11:10:20 -08004 !synthetic *;
Jared Duke4514bdf2021-11-18 13:18:21 -08005}
6
7# Various classes subclassed in ethernet-service (avoid marking final).
8-keep public class android.net.** { *; }
9
10# Referenced via CarServiceHelperService in car-frameworks-service (avoid removing).
Jared Dukeedb13392021-12-14 11:10:20 -080011-keep public class com.android.server.utils.Slogf { *; }
12
13# Allows making private and protected methods/fields public as part of
14# optimization. This enables inlining of trivial getter/setter methods.
15-allowaccessmodification
16
17# Disallow accessmodification for soundtrigger classes. Logging via reflective
18# public member traversal can cause infinite loops. See b/210901706.
19-keep,allowoptimization class com.android.server.soundtrigger_middleware.** {
20 !synthetic *;
21}