summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2015-03-31 19:29:39 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-03-31 19:29:39 +0200
commit9e1bba1f5f53f366bfec995a89e362c3b897cb37 (patch)
tree2dfb0dec13b9285f209d32e7f6d7a1436743c0cc /recovery.cpp
parentam 20e82d4f: Merge "Add support to enter sideload mode directly" (diff)
parentMerge "Revert "Erase PST partition if its marked to be erased."" (diff)
downloadandroid_bootable_recovery-9e1bba1f5f53f366bfec995a89e362c3b897cb37.tar
android_bootable_recovery-9e1bba1f5f53f366bfec995a89e362c3b897cb37.tar.gz
android_bootable_recovery-9e1bba1f5f53f366bfec995a89e362c3b897cb37.tar.bz2
android_bootable_recovery-9e1bba1f5f53f366bfec995a89e362c3b897cb37.tar.lz
android_bootable_recovery-9e1bba1f5f53f366bfec995a89e362c3b897cb37.tar.xz
android_bootable_recovery-9e1bba1f5f53f366bfec995a89e362c3b897cb37.tar.zst
android_bootable_recovery-9e1bba1f5f53f366bfec995a89e362c3b897cb37.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 a390c8afb..4e43e8362 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -695,7 +695,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");
}
@@ -1102,7 +1101,6 @@ main(int argc, char **argv) {
if (device->WipeData()) status = INSTALL_ERROR;
if (erase_volume("/data")) status = INSTALL_ERROR;
if (should_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 (should_wipe_cache) {
if (should_wipe_cache && erase_volume("/cache")) status = INSTALL_ERROR;