Restrict optional system_server optimizations to shrinking

For the initial rollout of system_server R8 optimizations, we will
only apply code shrinking. This avoids the need for retracing in core
developer workflows, while providing modest benefits through code
shrinking.

Shrinking is still enabled in an opt-in basis for specific devices
via `SYSTEM_OPTIMIZE_JAVA=true`.

Bug: 210510433
Test: m SYSTEM_OPTIMIZE_JAVA=true
Change-Id: Ie9fb8138afd0cc60799e3154c709630a947968c0
This commit is contained in:
Jared Duke 2022-02-15 13:57:06 -08:00
parent 66660a1a4e
commit ea03d1067b

View File

@ -42,7 +42,9 @@ system_optimized_java_defaults {
SYSTEM_OPTIMIZE_JAVA: {
optimize: {
enabled: true,
optimize: true,
// TODO(b/210510433): Enable optimizations after improving
// retracing infra.
optimize: false,
shrink: true,
proguard_flags_files: ["proguard.flags"],
},