2019-12-16 20:15:20 +08:00
|
|
|
# Keep class's integer static field for MessageUtils to parsing their name.
|
2020-07-29 12:05:04 +08:00
|
|
|
-keep class com.android.networkstack.tethering.Tethering$TetherMainSM {
|
2019-12-16 20:15:20 +08:00
|
|
|
static final int CMD_*;
|
|
|
|
|
static final int EVENT_*;
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-19 10:59:01 -07:00
|
|
|
-keep class com.android.networkstack.tethering.util.BpfMap {
|
2020-11-12 00:17:15 +08:00
|
|
|
native <methods>;
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-20 22:06:24 +01:00
|
|
|
-keep class com.android.networkstack.tethering.util.TcUtils {
|
|
|
|
|
native <methods>;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-12 00:17:15 +08:00
|
|
|
-keepclassmembers public class * extends com.android.networkstack.tethering.util.Struct {
|
2021-04-14 01:30:55 +00:00
|
|
|
*;
|
2020-11-12 00:17:15 +08:00
|
|
|
}
|
|
|
|
|
|
2019-12-16 20:15:20 +08:00
|
|
|
-keepclassmembers class android.net.ip.IpServer {
|
|
|
|
|
static final int CMD_*;
|
|
|
|
|
}
|
2022-03-03 10:15:09 +08:00
|
|
|
|
|
|
|
|
# The lite proto runtime uses reflection to access fields based on the names in
|
|
|
|
|
# the schema, keep all the fields.
|
|
|
|
|
-keepclassmembers class * extends com.android.networkstack.tethering.protobuf.MessageLite {
|
|
|
|
|
<fields>;
|
|
|
|
|
}
|