recovery_ui: Tell the user they're actually formatting
* TWRP has given user the sentiment that "Wiping data",
and "Factory Reset" both imply the exclusion of
files in `/data/media/0` (/sdcard), whereas both AOSP
(and Lineage Recovery by proxy) format the partitions.
Change-Id: I36c5a59552d7d538a05762ca262e42dc78a1deac
diff --git a/recovery.cpp b/recovery.cpp
index 70fc11c..ca455c7 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -201,8 +201,8 @@
}
static bool ask_to_wipe_data(Device* device) {
- std::vector<std::string> headers{ "Wipe all user data?", " THIS CAN NOT BE UNDONE!" };
- std::vector<std::string> items{ " Cancel", " Factory data reset" };
+ std::vector<std::string> headers{ "Format user data?", "This includes internal storage.", "THIS CANNOT BE UNDONE!" };
+ std::vector<std::string> items{ " Cancel", " Format data" };
size_t chosen_item = ui->ShowMenu(
headers, items, 0, true,
@@ -616,7 +616,7 @@
case Device::WIPE_CACHE: {
save_current_log = true;
std::function<bool()> confirm_func = [&device]() {
- return yes_no(device, "Wipe cache?", " THIS CAN NOT BE UNDONE!");
+ return yes_no(device, "Format cache?", " THIS CAN NOT BE UNDONE!");
};
WipeCache(ui, ui->IsTextVisible() ? confirm_func : nullptr);
if (!ui->IsTextVisible()) return Device::NO_ACTION;
@@ -626,7 +626,7 @@
case Device::WIPE_SYSTEM: {
save_current_log = true;
std::function<bool()> confirm_func = [&device]() {
- return yes_no(device, "Wipe system?", " THIS CAN NOT BE UNDONE!");
+ return yes_no(device, "Format system?", " THIS CAN NOT BE UNDONE!");
};
WipeSystem(ui, ui->IsTextVisible() ? confirm_func : nullptr);
if (!ui->IsTextVisible()) return Device::NO_ACTION;