From b3c83d3c875596aa78608314860dabca27fe1615 Mon Sep 17 00:00:00 2001 From: Jared Duke Date: Thu, 14 Sep 2023 18:26:26 +0000 Subject: Relax system_server keep rules Remove explicit keep rules for binder interfaces. These should all be handled correctly now that we pull in the framework-res manifest proguard rules. This saves ~140KB from services.jar. Test: m + boot + presubmit + inspect services.jar diff Bug: 300294899 Bug: 246800015 Change-Id: I1d2c41a3be1894a6ffb9599d1a6d88bc6537c442 --- services/proguard.flags | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/proguard.flags b/services/proguard.flags index 85d05afdccc6..1fc83466d761 100644 --- a/services/proguard.flags +++ b/services/proguard.flags @@ -38,10 +38,6 @@ public static void write(...); } -# Binder interfaces --keep,allowoptimization,allowaccessmodification class * extends android.os.IInterface --keep,allowoptimization,allowaccessmodification class * extends android.os.IHwInterface - # Various classes subclassed in or referenced via JNI in ethernet-service -keep public class android.net.** { *; } -keep,allowoptimization,allowaccessmodification class com.android.net.module.util.* { *; } -- cgit v1.2.3-59-g8ed1b