Fix wipe from android settings for devices with /datadata

Change-Id: I2d80d580bc2ccdc756f411dbe514270d5c245816
This commit is contained in:
Pawit Pornkitprasan 2011-11-26 22:43:57 +07:00
parent a9017dabc5
commit 1659814576

View File

@ -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) {