Allow multiuser use of keystore
Since keystore has been refactored to let muliple users use it simultaneously, we can remove all the restrictions put into place to prevent it. Bug: 7249554 Change-Id: I5aa069ca439cea68e87e141c497be8cd86b0ba9d
This commit is contained in:
@@ -231,21 +231,18 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
||||
// Show password
|
||||
mShowPassword = (CheckBoxPreference) root.findPreference(KEY_SHOW_PASSWORD);
|
||||
|
||||
// Credential storage, only for primary user
|
||||
if (mIsPrimary) {
|
||||
mKeyStore = KeyStore.getInstance();
|
||||
Preference credentialStorageType = root.findPreference(KEY_CREDENTIAL_STORAGE_TYPE);
|
||||
// Credential storage
|
||||
mKeyStore = KeyStore.getInstance();
|
||||
Preference credentialStorageType = root.findPreference(KEY_CREDENTIAL_STORAGE_TYPE);
|
||||
|
||||
final int storageSummaryRes =
|
||||
mKeyStore.isHardwareBacked() ? R.string.credential_storage_type_hardware
|
||||
: R.string.credential_storage_type_software;
|
||||
credentialStorageType.setSummary(storageSummaryRes);
|
||||
final int storageSummaryRes =
|
||||
mKeyStore.isHardwareBacked() ? R.string.credential_storage_type_hardware
|
||||
: R.string.credential_storage_type_software;
|
||||
credentialStorageType.setSummary(storageSummaryRes);
|
||||
|
||||
mResetCredentials = root.findPreference(KEY_RESET_CREDENTIALS);
|
||||
} else {
|
||||
removePreference(KEY_CREDENTIALS_MANAGER);
|
||||
}
|
||||
mResetCredentials = root.findPreference(KEY_RESET_CREDENTIALS);
|
||||
|
||||
// Application install
|
||||
mToggleAppInstallation = (CheckBoxPreference) findPreference(
|
||||
KEY_TOGGLE_INSTALL_APPLICATIONS);
|
||||
mToggleAppInstallation.setChecked(isNonMarketAppsAllowed());
|
||||
|
||||
Reference in New Issue
Block a user