Remove CryptKeeperSettings
FDE support has been removed in favor of FBE, so remove the FDE settings
from the "Encryption & credentials" page of the Settings app.
For now I didn't change the way the page appears on devices that don't
use FDE; as before, it still lists "Encrypt phone", followed by either
"Encrypted" or "Phone not encrypted" with no changeable settings. Note
that the strings used for this have "crypt_keeper" in their names but
aren't specific to FDE; the next CL will rename them.
Test: On Cuttlefish with and without encryption enabled, tested visiting
the "Encryption & credentials" settings.
Bug: 208476087
Change-Id: I3ce9894291ea1f1886f21980a86a92bfce38038a
This commit is contained in:
@@ -55,14 +55,8 @@ public class EncryptionStatusPreferenceController extends BasePreferenceControll
|
||||
public void updateState(Preference preference) {
|
||||
final boolean encryptionEnabled = LockPatternUtils.isDeviceEncryptionEnabled();
|
||||
if (encryptionEnabled) {
|
||||
if (TextUtils.equals(getPreferenceKey(), PREF_KEY_ENCRYPTION_DETAIL_PAGE)) {
|
||||
preference.setFragment(null);
|
||||
}
|
||||
preference.setSummary(R.string.crypt_keeper_encrypted_summary);
|
||||
} else {
|
||||
if (TextUtils.equals(getPreferenceKey(), PREF_KEY_ENCRYPTION_DETAIL_PAGE)) {
|
||||
preference.setFragment(CryptKeeperSettings.class.getName());
|
||||
}
|
||||
preference.setSummary(R.string.decryption_settings_summary);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user