Merge changes I86257bc8,I5c2221c5 into nyc-dev
am: 20f253eb7d
* commit '20f253eb7d82f980d1c6cbab2b06315a027ed62c':
Use Netd's binder interface to set resolver configuration.
Add Gservices settings for resolver configuration.
Change-Id: I80fdc381bd3ff33a8efa6624d7115c346789ca17
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