Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9055ae36 authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Fix a permissions probem in ConnectivityManager

stopUsingNetworkFeature fails because of new permissions checks in netd.

Change-Id: I04cb10d955c9dd9977c460c6c1db0d1910a863ce
parent 35185a9c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1315,7 +1315,13 @@ public class ConnectivityService extends IConnectivityManager.Stub {
            if (usedNetworkType != networkType) {
                Integer currentPid = new Integer(pid);
                mNetRequestersPids[usedNetworkType].remove(currentPid);

                final long token = Binder.clearCallingIdentity();
                try {
                    reassessPidDns(pid, true);
                } finally {
                    Binder.restoreCallingIdentity(token);
                }
                flushVmDnsCache();
                if (mNetRequestersPids[usedNetworkType].size() != 0) {
                    if (VDBG) {