1# Keep JNI registered methods 2-keepclasseswithmembers,includedescriptorclasses class * { native <methods>; } 3 4-keepclassmembers class com.android.networkstack.android.net.ip.IpClient$IpClientCommands { 5 static final int CMD_*; 6 static final int EVENT_*; 7} 8 9-keepclassmembers class com.android.networkstack.android.net.dhcp.DhcpClient { 10 static final int CMD_*; 11 static final int EVENT_*; 12} 13 14-keepclassmembers public class * extends com.android.networkstack.com.android.net.module.util.Struct { 15 *; 16} 17 18# The lite proto runtime uses reflection to access fields based on the names in 19# the schema, keep all the fields. 20# This replicates the base proguard rule used by the build by default 21# (proguard_basic_keeps.flags), but needs to be specified here because the 22# com.google.protobuf package is jarjared to the below package. 23-keepclassmembers class * extends com.android.networkstack.com.google.protobuf.MessageLite { <fields>; } 24