summaryrefslogtreecommitdiffstats
path: root/default_device.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2014-10-23 22:44:56 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-23 22:44:56 +0200
commitefcdf752b1b25012567020707fb22808f5e98b29 (patch)
treed6842bb9f7f5e9186311b1bac3f00192e2a5c493 /default_device.cpp
parentam c224ac28: am 3b5c6dca: am 2f0ef730: Treat already-renamed files as having no problems. (diff)
parentam d0602fbb: am 9b2db80d: Merge "Make /cache/recovery/last_log available in recovery" into lmp-dev (diff)
downloadandroid_bootable_recovery-efcdf752b1b25012567020707fb22808f5e98b29.tar
android_bootable_recovery-efcdf752b1b25012567020707fb22808f5e98b29.tar.gz
android_bootable_recovery-efcdf752b1b25012567020707fb22808f5e98b29.tar.bz2
android_bootable_recovery-efcdf752b1b25012567020707fb22808f5e98b29.tar.lz
android_bootable_recovery-efcdf752b1b25012567020707fb22808f5e98b29.tar.xz
android_bootable_recovery-efcdf752b1b25012567020707fb22808f5e98b29.tar.zst
android_bootable_recovery-efcdf752b1b25012567020707fb22808f5e98b29.zip
Diffstat (limited to 'default_device.cpp')
-rw-r--r--default_device.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/default_device.cpp b/default_device.cpp
index a25f05f8e..97806ac58 100644
--- a/default_device.cpp
+++ b/default_device.cpp
@@ -31,6 +31,7 @@ static const char* ITEMS[] = {"reboot system now",
"wipe cache partition",
"reboot to bootloader",
"power down",
+ "view recovery logs",
NULL };
class DefaultDevice : public Device {
@@ -69,6 +70,7 @@ class DefaultDevice : public Device {
case 3: return WIPE_CACHE;
case 4: return REBOOT_BOOTLOADER;
case 5: return SHUTDOWN;
+ case 6: return READ_RECOVERY_LASTLOG;
default: return NO_ACTION;
}
}