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

Commit 6460d464 authored by Cassie Wang's avatar Cassie Wang Committed by Gerrit Code Review
Browse files

Merge "Allow any caller with CONTROL_VPN to disconnect existing VPN"

parents ee4446c0 d097d0c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1389,7 +1389,7 @@ public class Vpn {
        }

        // Check that the caller is authorized.
        enforceControlPermission();
        enforceControlPermissionOrInternalCaller();

        // Stop an existing always-on VPN from being dethroned by other apps.
        if (mAlwaysOn && !isCurrentPreparedPackage(newPackage)) {