Files
android_packages_modules_Co…/Tethering/proguard.flags
Remi NGUYEN VAN 9a82bbf368 Fix proguard rules for Struct in NetworkStack
All members of the Struct class need to be kept, not just the constructor.

Change-Id: I8705234eb2608c0dfe324c517b8885a93271b6c2
Test: m
2021-04-14 01:30:59 +00:00

18 lines
470 B
Plaintext

# Keep class's integer static field for MessageUtils to parsing their name.
-keep class com.android.networkstack.tethering.Tethering$TetherMainSM {
static final int CMD_*;
static final int EVENT_*;
}
-keep class com.android.networkstack.tethering.BpfMap {
native <methods>;
}
-keepclassmembers public class * extends com.android.networkstack.tethering.util.Struct {
*;
}
-keepclassmembers class android.net.ip.IpServer {
static final int CMD_*;
}