Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d0091f2a authored by Martijn Coenen's avatar Martijn Coenen Committed by Automerger Merge Worker
Browse files

Merge "Add SDK level check to adding sandbox UIDs." am: e202bd7d

parents 9493af0e e202bd7d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1629,7 +1629,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));
            }
        }