commit | b33a2638db698a58380025d23fcc73b713fb8389 | [log] [tgz] |
---|---|---|
author | zhidou <zhidou@google.com> | Tue Sep 06 17:58:20 2022 +0000 |
committer | Zhi Dou <zhidou@google.com> | Tue Sep 27 04:03:13 2022 +0000 |
tree | dc4e0c15ab06194c11cb9a61f89c98cb61d4492b | |
parent | d748bf6b6bad2b7ffddaf01e252a57030dfb971d [diff] |
Enable R8 shrinking of standalone system server jar service-connectivity This change enables R8 shrinking, and R8 full mode of standalone system server jar service-connectivity. Keep rules are specified based on the entries in frameworks/base/services/java/com/android/server/SystemServer.java. Keep rules of classes extending SystemServer is inherited from "standalone-system-server-module-optimize-defaults", https://cs.android.com/android/platform/superproject/+/master:packages/modules/common/proguard/Android.bp, which is a set of common rules for standalone system server jar. Keep rules of proto is inherited from "proguard_basic_keeps", https://cs.android.com/android/platform/superproject/+/master:build/make/core/proguard_basic_keeps.flags, which is the common set of keep rules for all dex target. The size of service-connectivity will be reduced by 31% from 2094301B to 1426485B. Test: Presubmit and MTS. Run MTS locally with command `mts-tradefed run` with `mts-tethering`, `mts-network`, `mts-cellbroadcast` on Pixel 4 with sunfish-userdebug image. Bug: 233746531 Change-Id: I291c9d880a1ffc7dc87f932f9d27ce3740b9dc36