Merge "Revert "Partially enforce permission when calling getNetworkInfoForUid""
This commit is contained in:
@@ -1983,9 +1983,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