Revert "Partially enforce permission when calling getNetworkInfoForUid"
This reverts commit 163cb98751.
Reason for revert: b/257407201
Change-Id: I412140117d25f4a4b439fff5aaa50785f33b0689
This commit is contained in:
parent
163cb98751
commit
d0cf7784dc
1 changed files with 4 additions and 46 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue