am 9d68fe46: am 74c720c9: am a267d9c1: Merge "Disable mDefaultDns to see if we can remove it." into mnc-dev
* commit '9d68fe46504ac2521fbcc8ad5e5d7e74dbffd89c': Disable mDefaultDns to see if we can remove it.
This commit is contained in:
@@ -3819,10 +3819,12 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||||||
// }
|
// }
|
||||||
updateTcpBufferSizes(networkAgent);
|
updateTcpBufferSizes(networkAgent);
|
||||||
|
|
||||||
// TODO: deprecate and remove mDefaultDns when we can do so safely.
|
// TODO: deprecate and remove mDefaultDns when we can do so safely. See http://b/18327075
|
||||||
// For now, use it only when the network has Internet access. http://b/18327075
|
// In L, we used it only when the network had Internet access but provided no DNS servers.
|
||||||
final boolean useDefaultDns = networkAgent.networkCapabilities.hasCapability(
|
// For now, just disable it, and if disabling it doesn't break things, remove it.
|
||||||
NET_CAPABILITY_INTERNET);
|
// final boolean useDefaultDns = networkAgent.networkCapabilities.hasCapability(
|
||||||
|
// NET_CAPABILITY_INTERNET);
|
||||||
|
final boolean useDefaultDns = false;
|
||||||
final boolean flushDns = updateRoutes(newLp, oldLp, netId);
|
final boolean flushDns = updateRoutes(newLp, oldLp, netId);
|
||||||
updateDnses(newLp, oldLp, netId, flushDns, useDefaultDns);
|
updateDnses(newLp, oldLp, netId, flushDns, useDefaultDns);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user