Revert "Partially enforce permission when calling getNetworkInfoForUid"
This reverts commit 163cb98751.
Reason for revert: b/257407201
Change-Id: I412140117d25f4a4b439fff5aaa50785f33b0689
This commit is contained in:
committed by
Gerrit Code Review
parent
163cb98751
commit
d0cf7784dc
@@ -1976,9 +1976,6 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
||||
@Nullable
|
||||
public NetworkInfo getNetworkInfoForUid(Network network, int uid, boolean ignoreBlocked) {
|
||||
enforceAccessPermission();
|
||||
if (uid != mDeps.getCallingUid()) {
|
||||
enforceNetworkStackPermission(mContext);
|
||||
}
|
||||
final NetworkAgentInfo nai = getNetworkAgentInfoForNetwork(network);
|
||||
if (nai == null) return null;
|
||||
return getFilteredNetworkInfo(nai, uid, ignoreBlocked);
|
||||
|
||||
Reference in New Issue
Block a user