diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java
index f9423db..ce4f253 100644
--- a/services/core/java/com/android/server/ConnectivityService.java
+++ b/services/core/java/com/android/server/ConnectivityService.java
// send out another legacy broadcast - currently only used for suspend/unsuspend
// toggle
public void update(NetworkAgentInfo nai) {
@@ -3299,6 +3211,9 @@
nai.getCurrentScoreAsValidated())) {
return false;
}
+ if(nai.getCurrentScore()>0 && nai.networkInfo.getType()==ConnectivityManager.TYPE_ETHERNET){
+ return false;
+ }
}
return true;
}
@@ -5621,6 +5536,70 @@
updateUids(nai, null, nai.networkCapabilities);
}
+ private final static String nullIpInfo = "0.0.0.0";
+ private void saveEthernetInformation(LinkProperties mLinkProperties,boolean up) {//分别保存双网口ip地址信息
+ Log.i(TAG, "saveEthernetInformation " + mLinkProperties.getInterfaceName());
+ Log.i(TAG, "saveEthernetInforma