Files
android_packages_modules_Co…/Tethering/proguard.flags
Patrick Rohr b194dfe04b Add proguard rules for TcUtils
Without this, proguard strips tcFilterAddDevIngressPolice (as its unused
inside the Tethering apk) and crashes the system.

Bug: 202086915
Bug: 157552970
Test: device boots
Change-Id: I3f29a2d2371ecbfad929f8812f7f15f68258b5d1
2022-01-20 22:11:57 +01:00

22 lines
562 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.util.BpfMap {
native <methods>;
}
-keep class com.android.networkstack.tethering.util.TcUtils {
native <methods>;
}
-keepclassmembers public class * extends com.android.networkstack.tethering.util.Struct {
*;
}
-keepclassmembers class android.net.ip.IpServer {
static final int CMD_*;
}