Remove two new permission checks am: dc55f48d64

Original change: undetermined

Change-Id: I3c98a3307a5ff432baa0eb7e968005d1d6fa912e
This commit is contained in:
Robert Greenwalt
2021-05-31 05:55:29 +00:00
committed by Automerger Merge Worker

View File

@@ -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;
}