Jared Duke | 4514bdf | 2021-11-18 13:18:21 -0800 | [diff] [blame] | 1 | # 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 Duke | edb1339 | 2021-12-14 11:10:20 -0800 | [diff] [blame^] | 4 | !synthetic *; |
Jared Duke | 4514bdf | 2021-11-18 13:18:21 -0800 | [diff] [blame] | 5 | } |
| 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 Duke | edb1339 | 2021-12-14 11:10:20 -0800 | [diff] [blame^] | 11 | -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 | } |