From c277762de13653f73451e1a21fe73eafc51f918e Mon Sep 17 00:00:00 2001 From: Andres Morales Date: Mon, 30 Mar 2015 20:56:57 +0000 Subject: Revert "Erase PST partition if its marked to be erased." This now gets done at the framework level. Doing it here breaks the signature on the partition. This reverts commit ee19387905650cab5da7dd97ada5502cd17ac93d. Bug: 19967123 Change-Id: I2a977cb0f0ba94defa1bf9091219398ddc1d3528 (cherry picked from commit 037444642bc32d8fed3bb996823b6a62faa57195) --- recovery.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'recovery.cpp') 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; -- cgit v1.2.3