Use appId for looking up allowed on restricted networks uids list am: 3c42fedeb5

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15351474

Change-Id: I6b6d79867ef823e4d02e2fdad20109e51ee56f41
This commit is contained in:
Treehugger Robot
2021-07-26 08:13:38 +00:00
committed by Automerger Merge Worker

View File

@@ -303,7 +303,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