diff --git a/Tethering/proguard.flags b/Tethering/proguard.flags index 47e284866b..6d857b103b 100644 --- a/Tethering/proguard.flags +++ b/Tethering/proguard.flags @@ -1,3 +1,6 @@ +# Keep JNI registered methods +-keepclasseswithmembers,includedescriptorclasses class * { native ; } + # Keep class's integer static field for MessageUtils to parsing their name. -keepclassmembers class com.android.server.**,android.net.**,com.android.networkstack.** { static final % POLICY_*; @@ -7,18 +10,6 @@ static final % EVENT_*; } --keep class com.android.networkstack.tethering.util.BpfMap { - native ; -} - --keep class com.android.networkstack.tethering.util.TcUtils { - native ; -} - --keep class com.android.networkstack.tethering.util.TetheringUtils { - native ; -} - # Ensure runtime-visible field annotations are kept when using R8 full mode. -keepattributes RuntimeVisibleAnnotations,AnnotationDefault -keep interface com.android.networkstack.tethering.util.Struct$Field {