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-04-02 00:43:35 +0200
commitc94fa0b01b43709531dfbcdb94abb2a1cc23be3d (patch)
tree4fe170dd5cbb6a0f3b61576538e301d9d7c1bfff /recovery.cpp
parentupdater: Check the return value from ApplyImagePatch / ApplyBSDiffPatch (diff)
downloadandroid_bootable_recovery-c94fa0b01b43709531dfbcdb94abb2a1cc23be3d.tar
android_bootable_recovery-c94fa0b01b43709531dfbcdb94abb2a1cc23be3d.tar.gz
android_bootable_recovery-c94fa0b01b43709531dfbcdb94abb2a1cc23be3d.tar.bz2
android_bootable_recovery-c94fa0b01b43709531dfbcdb94abb2a1cc23be3d.tar.lz
android_bootable_recovery-c94fa0b01b43709531dfbcdb94abb2a1cc23be3d.tar.xz
android_bootable_recovery-c94fa0b01b43709531dfbcdb94abb2a1cc23be3d.tar.zst
android_bootable_recovery-c94fa0b01b43709531dfbcdb94abb2a1cc23be3d.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 6deeaaaed..575e287aa 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -716,7 +716,6 @@ wipe_data(int confirm, Device* device) {
device->WipeData();
erase_volume("/data");
erase_volume("/cache");
- erase_persistent_partition();
ui->Print("Data wipe complete.\n");
}
@@ -1122,7 +1121,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;