Merge changes I86257bc8,I5c2221c5 into nyc-dev am: 20f253eb7d
am: ddb5e9164d
* commit 'ddb5e9164dd5610626f2cec622e7083fed444b5d':
Use Netd's binder interface to set resolver configuration.
Add Gservices settings for resolver configuration.
Change-Id: I36c07f09ac62620fd4119eff1f9da5a278d08144
This commit is contained in:
@@ -4317,10 +4317,10 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
Collection<InetAddress> dnses = newLp.getDnsServers();
|
||||
if (DBG) log("Setting DNS servers for network " + netId + " to " + dnses);
|
||||
try {
|
||||
mNetd.setDnsServersForNetwork(
|
||||
mNetd.setDnsConfigurationForNetwork(
|
||||
netId, NetworkUtils.makeStrings(dnses), newLp.getDomains());
|
||||
} catch (Exception e) {
|
||||
loge("Exception in setDnsServersForNetwork: " + e);
|
||||
loge("Exception in setDnsConfigurationForNetwork: " + e);
|
||||
}
|
||||
final NetworkAgentInfo defaultNai = getDefaultNetwork();
|
||||
if (defaultNai != null && defaultNai.network.netId == netId) {
|
||||
|
||||
Reference in New Issue
Block a user