Merge "Use appId for looking up allowed on restricted networks uids list"
This commit is contained in:
commit
02d7eb2abe
1 changed files with 1 additions and 1 deletions
|
|
@ -310,7 +310,7 @@ public class PermissionMonitor {
|
|||
if (appInfo == null) return false;
|
||||
// Check whether package's uid is in allowed on restricted networks uid list. If so, this
|
||||
// uid can have netd system permission.
|
||||
return mUidsAllowedOnRestrictedNetworks.contains(appInfo.uid);
|
||||
return mUidsAllowedOnRestrictedNetworks.contains(UserHandle.getAppId(appInfo.uid));
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
|
|
|
|||
Loading…
Reference in a new issue