aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhidou <zhidou@google.com>2022-07-14 20:48:02 +0000
committerzhidou <zhidou@google.com>2022-07-14 20:48:02 +0000
commit46d228aad25254ec2c15623a2f6eda583cf457c9 (patch)
treea159351d652b13efceed37c7b9713e43f903796a
parent29bfb6ae0f4aa5fc2ce8bf11bf6428c015af8703 (diff)
downloadcommon-46d228aad25254ec2c15623a2f6eda583cf457c9.tar.gz
Keep all fields and methods of classes extends SystemServer
Before the change, the keep rule only keeps the class that extends SystemServer, but if the methods/fields in the class are not used by other entries, then the methods/fields will be removed. It will cause issue for some service are not only used by calling the public methods inherited from SystemServer. This change will keep all methods, and fields in the class that extends SystemServer. Bug: 233746531 Test: Build modules using this configuration locally, and check all neseccary methods are kept. Change-Id: Ia938fe8726ac8d4c1f2066f1ebca318b624e30de
-rw-r--r--proguard/system-server.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/proguard/system-server.pro b/proguard/system-server.pro
index f68eb9c2..c6eaffb7 100644
--- a/proguard/system-server.pro
+++ b/proguard/system-server.pro
@@ -1 +1 @@
--keep class * extends com.android.server.SystemService
+-keep class * extends com.android.server.SystemService { *; }