From 1659814576dec4a32ad849bee9fc74e867a3c18f Mon Sep 17 00:00:00 2001 From: Pawit Pornkitprasan Date: Sat, 26 Nov 2011 22:43:57 +0700 Subject: [PATCH] Fix wipe from android settings for devices with /datadata Change-Id: I2d80d580bc2ccdc756f411dbe514270d5c245816 --- recovery.c | 1 + 1 file changed, 1 insertion(+) diff --git a/recovery.c b/recovery.c index 0e92a5b..383790e 100644 --- a/recovery.c +++ b/recovery.c @@ -867,6 +867,7 @@ main(int argc, char **argv) { } else if (wipe_data) { if (device_wipe_data()) status = INSTALL_ERROR; if (erase_volume("/data")) status = INSTALL_ERROR; + if (has_datadata() && erase_volume("/datadata")) status = INSTALL_ERROR; if (wipe_cache && erase_volume("/cache")) status = INSTALL_ERROR; if (status != INSTALL_SUCCESS) ui_print("Data wipe failed.\n"); } else if (wipe_cache) {