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

Commit 10957727 authored by sj.cha's avatar sj.cha Committed by android-build-merger
Browse files

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

am: 3b92631a

Change-Id: I82c297e654af6690c6a3be216a0da08a3aff5b9d
parents 35f8d6cf 3b92631a
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -3661,7 +3661,12 @@ public class ConnectivityService extends IConnectivityManager.Stub
        // Tear down existing lockdown if profile was removed
        // Tear down existing lockdown if profile was removed
        mLockdownEnabled = LockdownVpnTracker.isEnabled();
        mLockdownEnabled = LockdownVpnTracker.isEnabled();
        if (mLockdownEnabled) {
        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(
            final VpnProfile profile = VpnProfile.decode(
                    profileName, mKeyStore.get(Credentials.VPN + profileName));
                    profileName, mKeyStore.get(Credentials.VPN + profileName));
            if (profile == null) {
            if (profile == null) {