summaryrefslogtreecommitdiffstats
path: root/services/core/java
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2015-06-04 05:31:56 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-04 05:31:59 +0000
commit76f087502dbf6747719adade4c7f124ce8360d2b (patch)
treee01012106444eb97176ef25c9d35a2a3032620d7 /services/core/java
parentf1bbdf5182107aa7779cd1a91d8652f04fa1b399 (diff)
parent93155b3d78608b73ca759ae7f24de5ddb8474fb8 (diff)
downloadframeworks_base-76f087502dbf6747719adade4c7f124ce8360d2b.zip
frameworks_base-76f087502dbf6747719adade4c7f124ce8360d2b.tar.gz
frameworks_base-76f087502dbf6747719adade4c7f124ce8360d2b.tar.bz2
Merge "Disable mDefaultDns to see if we can remove it." into mnc-dev
Diffstat (limited to 'services/core/java')
-rw-r--r--services/core/java/com/android/server/ConnectivityService.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java
index e07e4e2..2e4b881 100644
--- a/services/core/java/com/android/server/ConnectivityService.java
+++ b/services/core/java/com/android/server/ConnectivityService.java
@@ -3819,10 +3819,12 @@ public class ConnectivityService extends IConnectivityManager.Stub
// }
updateTcpBufferSizes(networkAgent);
- // TODO: deprecate and remove mDefaultDns when we can do so safely.
- // For now, use it only when the network has Internet access. http://b/18327075
- final boolean useDefaultDns = networkAgent.networkCapabilities.hasCapability(
- NET_CAPABILITY_INTERNET);
+ // TODO: deprecate and remove mDefaultDns when we can do so safely. See http://b/18327075
+ // In L, we used it only when the network had Internet access but provided no DNS servers.
+ // For now, just disable it, and if disabling it doesn't break things, remove it.
+ // final boolean useDefaultDns = networkAgent.networkCapabilities.hasCapability(
+ // NET_CAPABILITY_INTERNET);
+ final boolean useDefaultDns = false;
final boolean flushDns = updateRoutes(newLp, oldLp, netId);
updateDnses(newLp, oldLp, netId, flushDns, useDefaultDns);