Fix wipe from android settings for devices with /datadata
Change-Id: I2d80d580bc2ccdc756f411dbe514270d5c245816
diff --git a/recovery.c b/recovery.c
index 0e92a5b..383790e 100644
--- a/recovery.c
+++ b/recovery.c
@@ -867,6 +867,7 @@
} 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) {