summaryrefslogtreecommitdiffstats
path: root/recovery
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2012-01-09 16:12:03 -0800
committerDoug Zongker <dougz@android.com>2012-01-09 16:12:03 -0800
commit995ab74f4402d548009f523f2bed9df8e86279c1 (patch)
treefd1d9261fac8ae5549133ff4ebaada7ba5fc18bb /recovery
parent0579122fe9723e950e06a8986f36395f0dd121c6 (diff)
downloaddevice_samsung_tuna-995ab74f4402d548009f523f2bed9df8e86279c1.zip
device_samsung_tuna-995ab74f4402d548009f523f2bed9df8e86279c1.tar.gz
device_samsung_tuna-995ab74f4402d548009f523f2bed9df8e86279c1.tar.bz2
add sideload-from-adb command to recovery menu
Change-Id: Ic94970a9a1ea2e452f2bb55dd516d5ec78cda9de
Diffstat (limited to 'recovery')
-rw-r--r--recovery/recovery_ui.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/recovery/recovery_ui.cpp b/recovery/recovery_ui.cpp
index 2ff5057..0c8b8f9 100644
--- a/recovery/recovery_ui.cpp
+++ b/recovery/recovery_ui.cpp
@@ -29,7 +29,8 @@ const char* HEADERS[] = { "Volume up/down to move highlight;",
NULL };
const char* ITEMS[] = { "reboot system now",
- "apply update from /cache",
+ "apply update from ADB",
+ "apply update from USB drive",
"wipe data/factory reset",
"wipe cache partition",
NULL };
@@ -90,9 +91,10 @@ class TunaDevice : public Device {
BuiltinAction InvokeMenuItem(int menu_position) {
switch (menu_position) {
case 0: return REBOOT;
- case 1: return APPLY_CACHE;
- 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;
}
}