summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2015-03-30 22:56:57 +0200
committerAndres Morales <anmorales@google.com>2015-03-30 22:58:35 +0200
commit037444642bc32d8fed3bb996823b6a62faa57195 (patch)
treeb2d8155ca2e18c4eb142189172151cdfb93c7172 /recovery.cpp
parentam dac24865: Merge "Factor out the "yes/no" menu and use it for "Wipe cache" too." (diff)
downloadandroid_bootable_recovery-037444642bc32d8fed3bb996823b6a62faa57195.tar
android_bootable_recovery-037444642bc32d8fed3bb996823b6a62faa57195.tar.gz
android_bootable_recovery-037444642bc32d8fed3bb996823b6a62faa57195.tar.bz2
android_bootable_recovery-037444642bc32d8fed3bb996823b6a62faa57195.tar.lz
android_bootable_recovery-037444642bc32d8fed3bb996823b6a62faa57195.tar.xz
android_bootable_recovery-037444642bc32d8fed3bb996823b6a62faa57195.tar.zst
android_bootable_recovery-037444642bc32d8fed3bb996823b6a62faa57195.zip
Diffstat (limited to '')
-rw-r--r--recovery.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 708d5f150..9b3f5bba4 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -693,7 +693,6 @@ static void wipe_data(int confirm, Device* device) {
device->WipeData();
erase_volume("/data");
erase_volume("/cache");
- erase_persistent_partition();
ui->Print("Data wipe complete.\n");
}
@@ -1100,7 +1099,6 @@ main(int argc, char **argv) {
if (device->WipeData()) status = INSTALL_ERROR;
if (erase_volume("/data")) status = INSTALL_ERROR;
if (wipe_cache && erase_volume("/cache")) status = INSTALL_ERROR;
- if (erase_persistent_partition() == -1 ) status = INSTALL_ERROR;
if (status != INSTALL_SUCCESS) ui->Print("Data wipe failed.\n");
} else if (wipe_cache) {
if (wipe_cache && erase_volume("/cache")) status = INSTALL_ERROR;