aboutsummaryrefslogtreecommitdiffstats
path: root/device.cpp
diff options
context:
space:
mode:
authorTom Marshall <tdm@cyngn.com>2015-11-06 10:19:13 -0800
committerTom Marshall <tdm@cyngn.com>2015-11-25 15:34:35 -0800
commite1ba5bc721daf65598feb2b5c46d1c06fac63ec4 (patch)
tree4ed3fec9743008ac96b2f71de075c51a18cae247 /device.cpp
parent40b9e54a3c05111a64159645170f67a9153dbcd5 (diff)
downloadbootable_recovery-e1ba5bc721daf65598feb2b5c46d1c06fac63ec4.zip
bootable_recovery-e1ba5bc721daf65598feb2b5c46d1c06fac63ec4.tar.gz
bootable_recovery-e1ba5bc721daf65598feb2b5c46d1c06fac63ec4.tar.bz2
recovery: datamedia support
Change-Id: I4cef82973a15111bee92cd7c81f0e1db8d211991
Diffstat (limited to 'device.cpp')
-rw-r--r--device.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/device.cpp b/device.cpp
index 46ee880..1f6bac7 100644
--- a/device.cpp
+++ b/device.cpp
@@ -22,6 +22,7 @@ static const char* MENU_ITEMS[] = {
"Apply update",
"Wipe data/factory reset",
"Wipe cache partition",
+ "Wipe media",
"Mount /system",
"View recovery logs",
"Power off",
@@ -41,9 +42,10 @@ Device::BuiltinAction Device::InvokeMenuItem(int menu_position) {
case 2: return APPLY_UPDATE;
case 3: return WIPE_DATA;
case 4: return WIPE_CACHE;
- case 5: return MOUNT_SYSTEM;
- case 6: return VIEW_RECOVERY_LOGS;
- case 7: return SHUTDOWN;
+ case 5: return WIPE_MEDIA;
+ case 6: return MOUNT_SYSTEM;
+ case 7: return VIEW_RECOVERY_LOGS;
+ case 8: return SHUTDOWN;
default: return NO_ACTION;
}
}