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

Commit 1a69570f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Infinite reboot when OS upgrade from M to N with set Always-on VPN"

parents 5e2a2ee3 2f73d551
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3661,7 +3661,12 @@ public class ConnectivityService extends IConnectivityManager.Stub
        // Tear down existing lockdown if profile was removed
        mLockdownEnabled = LockdownVpnTracker.isEnabled();
        if (mLockdownEnabled) {
            final String profileName = new String(mKeyStore.get(Credentials.LOCKDOWN_VPN));
            byte[] profileTag = mKeyStore.get(Credentials.LOCKDOWN_VPN);
            if (profileTag == null) {
                Slog.e(TAG, "Lockdown VPN configured but cannot be read from keystore");
                return false;
            }
            String profileName = new String(profileTag);
            final VpnProfile profile = VpnProfile.decode(
                    profileName, mKeyStore.get(Credentials.VPN + profileName));
            if (profile == null) {