fbe formatting: add warning for fbe devices and remove unused string

Change-Id: Id7af18a4c39932d8685e3265bfa158494ffd10f0
This commit is contained in:
bigbiff
2021-07-09 20:08:44 -04:00
parent 70cf814036
commit 2d54867daa
6 changed files with 5 additions and 5 deletions

View File

@@ -2074,6 +2074,10 @@ bool TWPartition::Wipe_Encryption() {
#ifndef TW_OEM_BUILD
gui_msg("format_data_msg=You may need to reboot recovery to be able to use /data again.");
#endif
if (Is_FBE) {
gui_msg(Msg(msg::kWarning, "data_media_fbe_msg=TWRP will not recreate /data/media on an FBE device. Please reboot into your rom to create /data/media."));
}
ret = true;
if (!Key_Directory.empty())
ret = PartitionManager.Wipe_By_Path(Key_Directory);