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

Commit 786525e8 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android (Google) Code Review
Browse files

Merge "Remove two new permission checks"

parents 69a8dbbd e436e4f8
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -2999,7 +2999,10 @@ public class ConnectivityService extends IConnectivityManager.Stub {
    }

    public ProxyProperties getProxy() {
        enforceAccessPermission();
        // this information is already available as a world read/writable jvm property
        // so this API change wouldn't have a benifit.  It also breaks the passing
        // of proxy info to all the JVMs.
        // enforceAccessPermission();
        synchronized (mDefaultProxyLock) {
            return mDefaultProxyDisabled ? null : mDefaultProxy;
        }
@@ -3051,7 +3054,10 @@ public class ConnectivityService extends IConnectivityManager.Stub {
    }

    public ProxyProperties getGlobalProxy() {
        enforceAccessPermission();
        // this information is already available as a world read/writable jvm property
        // so this API change wouldn't have a benifit.  It also breaks the passing
        // of proxy info to all the JVMs.
        // enforceAccessPermission();
        synchronized (mGlobalProxyLock) {
            return mGlobalProxy;
        }