Merge "Use appId for looking up allowed on restricted networks uids list"

This commit is contained in:
Treehugger Robot 2021-07-22 01:48:45 +00:00 • committed by Gerrit Code Review
commit 02d7eb2abe

View file

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