cca941a232
We needed this proguard flag because ThreadNetworkService#onLocalNetworkInfoChanged will otherwise be stripped. We need to keep the method to ensure the border routing feature works. Initially we put the flag in thread/service/proguard.flags. However, this seems not working on udc-mainline-prod branch. After moving it to Connectivity/service/proguard.flags, it works as desired. Bug: 313539492 Change-Id: I33cb0602095a617dbb1cfe3d9002f9c68e93cccf
21 lines
761 B
Text
21 lines
761 B
Text
|
|
# Keep JNI registered methods
|
|
-keepclasseswithmembers,includedescriptorclasses class * { native <methods>; }
|
|
|
|
# Keep classes extending structured message.
|
|
-keepclassmembers public class * extends **.com.android.net.module.util.Struct {
|
|
*;
|
|
}
|
|
|
|
-keepclassmembers class android.net.**,com.android.networkstack.** {
|
|
static final % POLICY_*;
|
|
static final % NOTIFY_TYPE_*;
|
|
static final % TRANSPORT_*;
|
|
static final % CMD_*;
|
|
static final % EVENT_*;
|
|
}
|
|
|
|
# b/313539492 Keep the onLocalNetworkInfoChanged method in classes extending Connectivity.NetworkCallback.
|
|
-keepclassmembers class * extends **android.net.ConnectivityManager$NetworkCallback {
|
|
public void onLocalNetworkInfoChanged(**android.net.Network, **android.net.LocalNetworkInfo);
|
|
}
|