Merge "Use appId for looking up allowed on restricted networks uids list" am: 02d7eb2abe

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

Change-Id: I0a853cfa3abfec8588dc0bdc97aef60230206bb8
This commit is contained in:
Treehugger Robot 2021-07-22 02:21:16 +00:00 • committed by Automerger Merge Worker
commit 7d0eb2b22a

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