Fix a permissions probem in ConnectivityManager
stopUsingNetworkFeature fails because of new permissions checks in netd. Change-Id: I04cb10d955c9dd9977c460c6c1db0d1910a863ce
This commit is contained in:
parent
e41e3b3c09
commit
e767d81d8f
1 changed files with 7 additions and 1 deletions
|
|
@ -1315,7 +1315,13 @@ public class ConnectivityService extends IConnectivityManager.Stub {
|
|||
if (usedNetworkType != networkType) {
|
||||
Integer currentPid = new Integer(pid);
|
||||
mNetRequestersPids[usedNetworkType].remove(currentPid);
|
||||
reassessPidDns(pid, true);
|
||||
|
||||
final long token = Binder.clearCallingIdentity();
|
||||
try {
|
||||
reassessPidDns(pid, true);
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(token);
|
||||
}
|
||||
flushVmDnsCache();
|
||||
if (mNetRequestersPids[usedNetworkType].size() != 0) {
|
||||
if (VDBG) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue