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

Commit 727cac07 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Gerrit Code Review
Browse files

Merge "Add getLegacyVpnInfoPrivileged method"

parents 5fc9b336 08bbca04
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1009,6 +1009,14 @@ public class Vpn {
    public synchronized LegacyVpnInfo getLegacyVpnInfo() {
        // Check if the caller is authorized.
        enforceControlPermission();
        return getLegacyVpnInfoPrivileged();
    }

    /**
     * Return the information of the current ongoing legacy VPN.
     * Callers are responsible for checking permissions if needed.
     */
    public synchronized LegacyVpnInfo getLegacyVpnInfoPrivileged() {
        if (mLegacyVpnRunner == null) return null;

        final LegacyVpnInfo info = new LegacyVpnInfo();