diff options
author | Tianjie Xu <xunchang@google.com> | 2017-09-27 19:39:05 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-09-27 19:39:05 +0200 |
commit | 4c7608f3cacfcb9e585e8bc254fb01eb5af40978 (patch) | |
tree | b245d108a23ee6d630fd30046e4eea84057f88f4 /device.cpp | |
parent | Merge "clang-format: Remove the override of PenaltyExcessCharacter." (diff) | |
parent | Add a new option in recovery menu to test the background texts (diff) | |
download | android_bootable_recovery-4c7608f3cacfcb9e585e8bc254fb01eb5af40978.tar android_bootable_recovery-4c7608f3cacfcb9e585e8bc254fb01eb5af40978.tar.gz android_bootable_recovery-4c7608f3cacfcb9e585e8bc254fb01eb5af40978.tar.bz2 android_bootable_recovery-4c7608f3cacfcb9e585e8bc254fb01eb5af40978.tar.lz android_bootable_recovery-4c7608f3cacfcb9e585e8bc254fb01eb5af40978.tar.xz android_bootable_recovery-4c7608f3cacfcb9e585e8bc254fb01eb5af40978.tar.zst android_bootable_recovery-4c7608f3cacfcb9e585e8bc254fb01eb5af40978.zip |
Diffstat (limited to '')
-rw-r--r-- | device.cpp | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/device.cpp b/device.cpp index 61501869e..f881daff6 100644 --- a/device.cpp +++ b/device.cpp @@ -17,34 +17,36 @@ #include "device.h" static const char* MENU_ITEMS[] = { - "Reboot system now", - "Reboot to bootloader", - "Apply update from ADB", - "Apply update from SD card", - "Wipe data/factory reset", + "Reboot system now", + "Reboot to bootloader", + "Apply update from ADB", + "Apply update from SD card", + "Wipe data/factory reset", #ifndef AB_OTA_UPDATER - "Wipe cache partition", + "Wipe cache partition", #endif // !AB_OTA_UPDATER - "Mount /system", - "View recovery logs", - "Run graphics test", - "Power off", - NULL, + "Mount /system", + "View recovery logs", + "Run graphics test", + "Run locale test", + "Power off", + nullptr, }; static const Device::BuiltinAction MENU_ACTIONS[] = { - Device::REBOOT, - Device::REBOOT_BOOTLOADER, - Device::APPLY_ADB_SIDELOAD, - Device::APPLY_SDCARD, - Device::WIPE_DATA, + Device::REBOOT, + Device::REBOOT_BOOTLOADER, + Device::APPLY_ADB_SIDELOAD, + Device::APPLY_SDCARD, + Device::WIPE_DATA, #ifndef AB_OTA_UPDATER - Device::WIPE_CACHE, + Device::WIPE_CACHE, #endif // !AB_OTA_UPDATER - Device::MOUNT_SYSTEM, - Device::VIEW_RECOVERY_LOGS, - Device::RUN_GRAPHICS_TEST, - Device::SHUTDOWN, + Device::MOUNT_SYSTEM, + Device::VIEW_RECOVERY_LOGS, + Device::RUN_GRAPHICS_TEST, + Device::RUN_LOCALE_TEST, + Device::SHUTDOWN, }; static_assert(sizeof(MENU_ITEMS) / sizeof(MENU_ITEMS[0]) == |