fbe formatting: add warning for fbe devices and remove unused string
Change-Id: Id7af18a4c39932d8685e3265bfa158494ffd10f0
(cherry picked from commit 2d54867daaeb374159355f06c8a295b32ad06bec)
diff --git a/partition.cpp b/partition.cpp
index 2af1bf3..5bccd40 100755
--- a/partition.cpp
+++ b/partition.cpp
@@ -2068,6 +2068,10 @@
#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);