Merge "Tell each VM to flush their DNS cache."
This commit is contained in:
committed by
Android (Google) Code Review
commit
f93a7e934e
@@ -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