Merge "Tell each VM to flush their DNS cache."
This commit is contained in:
commit
f93a7e934e
1 changed files with 6 additions and 0 deletions
|
|
@ -1596,6 +1596,12 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||
} catch (NumberFormatException e) {}
|
||||
}
|
||||
SystemProperties.set("net.dnschange", "" + (n+1));
|
||||
/*
|
||||
* Tell the VMs to toss their DNS caches
|
||||
*/
|
||||
Intent intent = new Intent(Intent.ACTION_CLEAR_DNS_CACHE);
|
||||
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
|
||||
mContext.sendBroadcast(intent);
|
||||
}
|
||||
|
||||
private void handleDnsConfigurationChange(int netType) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue