[VPN] save public legacy VPN details publicly

This does not include certificates, private keys etc. which are still
saved in the KeyStore with the encryption the user requested for them.

Makes connecting to lockdown vpn before user unlock possible.

Bug: 26108660
Change-Id: I56c1672c7a41e761c2791584b99900aff51b59e4
This commit is contained in:
Robin Lee
2015-12-17 11:58:24 +00:00
parent 949499948a
commit 4c85639733
3 changed files with 2 additions and 12 deletions

View File

@@ -107,7 +107,7 @@ public class ConfigDialogFragment extends DialogFragment implements
if (button == DialogInterface.BUTTON_POSITIVE) {
// Update KeyStore entry
KeyStore.getInstance().put(Credentials.VPN + profile.key, profile.encode(),
KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
KeyStore.UID_SELF, /* flags */ 0);
// Flush out old version of profile
disconnect(profile);