Add SDK level check to adding sandbox UIDs. am: 512a4fe715 am: 2c3b5487e9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18992911 Change-Id: Ic5ae416533da01fe925875e8b050630967f8c090 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1646,7 +1646,9 @@ public class Vpn {
|
||||
for (String app : packageNames) {
|
||||
int uid = getAppUid(app, userId);
|
||||
if (uid != -1) uids.add(uid);
|
||||
if (Process.isApplicationUid(uid)) {
|
||||
// TODO(b/230548427): Remove SDK check once VPN related stuff are decoupled from
|
||||
// ConnectivityServiceTest.
|
||||
if (Process.isApplicationUid(uid) && SdkLevel.isAtLeastT()) {
|
||||
uids.add(Process.toSdkSandboxUid(uid));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user