platform_packages_modules_C.../service/proguard.flags
Chalard Jean 88edc35da6 Keep primitive members used by MessageUtils.
This includes in particular {Full,Network}Score.POLICY_* members
which were removed recently.

Before :
  Policies : 55&62&63
After :
  Policies : EVER_EVALUATED&EVER_VALIDATED&IS_VALIDATED

This patch also unifies the directives under Tethering/ for
simplicity.

Test: adb logcat & dumpsys connectivity & dumpsys tethering
Change-Id: I3d231fbaaebe233b2633da8bb880b5ad1613a32f
2022-10-13 13:11:53 +09:00

17 lines
490 B
Text

# Keep JNI registered methods
-keepclasseswithmembers,includedescriptorclasses class * { native <methods>; }
# Keep classes extending structured message.
-keepclassmembers public class * extends **.com.android.net.module.util.Struct {
*;
}
-keepclassmembers class com.android.server.**,android.net.**,com.android.networkstack.** {
static final % POLICY_*;
static final % NOTIFY_TYPE_*;
static final % TRANSPORT_*;
static final % CMD_*;
static final % EVENT_*;
}