add sideload-from-adb command to recovery menu
Change-Id: Ifa5896da3940be26efabbe0842db386d6a8a532b
diff --git a/recovery/recovery_ui.cpp b/recovery/recovery_ui.cpp
index 1fcc151..f0ca4da 100644
--- a/recovery/recovery_ui.cpp
+++ b/recovery/recovery_ui.cpp
@@ -31,6 +31,7 @@
NULL };
const char* ITEMS[] = { "reboot system now",
+ "apply update from ADB",
"apply update from USB drive",
"wipe data/factory reset",
"wipe cache partition",
@@ -93,9 +94,10 @@
BuiltinAction InvokeMenuItem(int menu_position) {
switch (menu_position) {
case 0: return REBOOT;
- case 1: return APPLY_EXT;
- case 2: return WIPE_DATA;
- case 3: return WIPE_CACHE;
+ case 1: return APPLY_ADB_SIDELOAD;
+ case 2: return APPLY_EXT;
+ case 3: return WIPE_DATA;
+ case 4: return WIPE_CACHE;
default: return NO_ACTION;
}
}