Remove old KeyStore API call sites
Remove the call sites that don't have the flags specified. This is to ensure that callers know what flags they're setting. Bug: 8122243 Change-Id: I59e38efbab6ad60a905ce8678a340da2088b19c9
This commit is contained in:
@@ -237,7 +237,8 @@ public class VpnSettings extends SettingsPreferenceFragment implements
|
||||
if (button == DialogInterface.BUTTON_POSITIVE) {
|
||||
// Always save the profile.
|
||||
VpnProfile profile = mDialog.getProfile();
|
||||
mKeyStore.put(Credentials.VPN + profile.key, profile.encode());
|
||||
mKeyStore.put(Credentials.VPN + profile.key, profile.encode(), KeyStore.UID_SELF,
|
||||
KeyStore.FLAG_ENCRYPTED);
|
||||
|
||||
// Update the preference.
|
||||
VpnPreference preference = mPreferences.get(profile.key);
|
||||
@@ -530,7 +531,8 @@ public class VpnSettings extends SettingsPreferenceFragment implements
|
||||
Toast.LENGTH_LONG).show();
|
||||
return;
|
||||
}
|
||||
keyStore.put(Credentials.LOCKDOWN_VPN, profile.key.getBytes());
|
||||
keyStore.put(Credentials.LOCKDOWN_VPN, profile.key.getBytes(),
|
||||
KeyStore.UID_SELF, KeyStore.FLAG_ENCRYPTED);
|
||||
}
|
||||
|
||||
// kick profiles since we changed them
|
||||
|
Reference in New Issue
Block a user