summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2014-08-06 19:41:05 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-06 19:41:05 +0200
commitf38d6e5a3610075fdc57d1cc88287aae3dd47d00 (patch)
tree1d60fc74a6983fe4a1ef3f60e2d039857a18c2a1 /recovery.cpp
parentam 2b5f0e0f: remove spurious parens from error message (diff)
parentMerge "Erase PST partition if its marked to be erased." into lmp-dev (diff)
downloadandroid_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar.gz
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar.bz2
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar.lz
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar.xz
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.tar.zst
android_bootable_recovery-f38d6e5a3610075fdc57d1cc88287aae3dd47d00.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/recovery.cpp b/recovery.cpp
index d2d85e7c7..f78d6e46c 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -659,6 +659,7 @@ wipe_data(int confirm, Device* device) {
device->WipeData();
erase_volume("/data");
erase_volume("/cache");
+ erase_persistent_partition();
ui->Print("Data wipe complete.\n");
}
@@ -959,6 +960,7 @@ 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;