summaryrefslogtreecommitdiffstats
path: root/recovery.c
diff options
context:
space:
mode:
authorDoug Zongker <>2009-04-01 22:57:40 +0200
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-01 22:57:40 +0200
commit1066d2c31990e3c2eacedbe0a70013da774fcf3e (patch)
tree5b63ade43f6796b000f6e64c9e6cf6c41a01c993 /recovery.c
parentAI 143128: Use PNG instead of BMP for recovery image icons. This saves (diff)
downloadandroid_bootable_recovery-1066d2c31990e3c2eacedbe0a70013da774fcf3e.tar
android_bootable_recovery-1066d2c31990e3c2eacedbe0a70013da774fcf3e.tar.gz
android_bootable_recovery-1066d2c31990e3c2eacedbe0a70013da774fcf3e.tar.bz2
android_bootable_recovery-1066d2c31990e3c2eacedbe0a70013da774fcf3e.tar.lz
android_bootable_recovery-1066d2c31990e3c2eacedbe0a70013da774fcf3e.tar.xz
android_bootable_recovery-1066d2c31990e3c2eacedbe0a70013da774fcf3e.tar.zst
android_bootable_recovery-1066d2c31990e3c2eacedbe0a70013da774fcf3e.zip
Diffstat (limited to 'recovery.c')
-rw-r--r--recovery.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/recovery.c b/recovery.c
index 221ee2975..a0bae97ca 100644
--- a/recovery.c
+++ b/recovery.c
@@ -302,9 +302,11 @@ prompt_and_wait()
#define ITEM_REBOOT 0
#define ITEM_APPLY_SDCARD 1
#define ITEM_WIPE_DATA 2
+#define ITEM_WIPE_CACHE 3
char* items[] = { "reboot system now [Home+Back]",
"apply sdcard:update.zip [Alt+S]",
"wipe data/factory reset [Alt+W]",
+ "wipe cache partition",
NULL };
ui_start_menu(headers, items);
@@ -357,6 +359,13 @@ prompt_and_wait()
if (!ui_text_visible()) return;
break;
+ case ITEM_WIPE_CACHE:
+ ui_print("\n-- Wiping cache...\n");
+ erase_root("CACHE:");
+ ui_print("Cache wipe complete.\n");
+ if (!ui_text_visible()) return;
+ break;
+
case ITEM_APPLY_SDCARD:
ui_print("\n-- Install from sdcard...\n");
int status = install_package(SDCARD_PACKAGE_FILE);