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

Commit e202bd7d authored by Martijn Coenen's avatar Martijn Coenen Committed by Gerrit Code Review
Browse files

Merge "Add SDK level check to adding sandbox UIDs."

parents dca2e077 ab678b98
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));
            }
        }