Tell each VM to flush their DNS cache.
bug:3095357 Change-Id: I93de24e3e5a7d8b94d55f4facfffc863a2b8c202
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user