Loading services/java/com/android/server/ConnectivityService.java +1 −1 Original line number Diff line number Diff line Loading @@ -661,8 +661,8 @@ public class ConnectivityService extends IConnectivityManager.Stub { tracker = mNetTrackers[usedNetworkType]; if(usedNetworkType != networkType) { Integer currentPid = new Integer(pid); reassessPidDns(pid, true); mNetRequestersPids[usedNetworkType].remove(currentPid); reassessPidDns(pid, true); if (mNetRequestersPids[usedNetworkType].size() != 0) { if (DBG) Log.d(TAG, "not tearing down special network - " + "others still using it"); Loading telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java +0 −37 Original line number Diff line number Diff line Loading @@ -748,7 +748,6 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { } private void notifyDefaultData(String reason) { setupDnsProperties(); setState(State.CONNECTED); phone.notifyDataConnection(reason); startNetStatPoll(); Loading @@ -757,42 +756,6 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { mReregisterOnReconnectFailure = false; } private void setupDnsProperties() { int mypid = android.os.Process.myPid(); String[] servers = getDnsServers(null); String propName; String propVal; int count; count = 0; for (int i = 0; i < servers.length; i++) { String serverAddr = servers[i]; if (!TextUtils.equals(serverAddr, "0.0.0.0")) { SystemProperties.set("net.dns" + (i+1) + "." + mypid, serverAddr); count++; } } for (int i = count+1; i <= 4; i++) { propName = "net.dns" + i + "." + mypid; propVal = SystemProperties.get(propName); if (propVal.length() != 0) { SystemProperties.set(propName, ""); } } /* * Bump the property that tells the name resolver library * to reread the DNS server list from the properties. */ propVal = SystemProperties.get("net.dnschange"); if (propVal.length() != 0) { try { int n = Integer.parseInt(propVal); SystemProperties.set("net.dnschange", "" + (n+1)); } catch (NumberFormatException e) { } } } /** * This is a kludge to deal with the fact that * the PDP state change notification doesn't always work Loading Loading
services/java/com/android/server/ConnectivityService.java +1 −1 Original line number Diff line number Diff line Loading @@ -661,8 +661,8 @@ public class ConnectivityService extends IConnectivityManager.Stub { tracker = mNetTrackers[usedNetworkType]; if(usedNetworkType != networkType) { Integer currentPid = new Integer(pid); reassessPidDns(pid, true); mNetRequestersPids[usedNetworkType].remove(currentPid); reassessPidDns(pid, true); if (mNetRequestersPids[usedNetworkType].size() != 0) { if (DBG) Log.d(TAG, "not tearing down special network - " + "others still using it"); Loading
telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java +0 −37 Original line number Diff line number Diff line Loading @@ -748,7 +748,6 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { } private void notifyDefaultData(String reason) { setupDnsProperties(); setState(State.CONNECTED); phone.notifyDataConnection(reason); startNetStatPoll(); Loading @@ -757,42 +756,6 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { mReregisterOnReconnectFailure = false; } private void setupDnsProperties() { int mypid = android.os.Process.myPid(); String[] servers = getDnsServers(null); String propName; String propVal; int count; count = 0; for (int i = 0; i < servers.length; i++) { String serverAddr = servers[i]; if (!TextUtils.equals(serverAddr, "0.0.0.0")) { SystemProperties.set("net.dns" + (i+1) + "." + mypid, serverAddr); count++; } } for (int i = count+1; i <= 4; i++) { propName = "net.dns" + i + "." + mypid; propVal = SystemProperties.get(propName); if (propVal.length() != 0) { SystemProperties.set(propName, ""); } } /* * Bump the property that tells the name resolver library * to reread the DNS server list from the properties. */ propVal = SystemProperties.get("net.dnschange"); if (propVal.length() != 0) { try { int n = Integer.parseInt(propVal); SystemProperties.set("net.dnschange", "" + (n+1)); } catch (NumberFormatException e) { } } } /** * This is a kludge to deal with the fact that * the PDP state change notification doesn't always work Loading