diff options
author | Shelley Chen <shchen@chromium.org> | 2017-07-31 14:28:42 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-14 20:37:45 -0700 |
commit | 8c4b828502d8c6c7112286720dddfd30c92a968e (patch) | |
tree | 051cd3d48aef4bd58d8ca91862868466b2881cfd /firmware/stub | |
parent | 3f24b902e473777f59c35673f645a6e05f19977d (diff) | |
download | vboot-8c4b828502d8c6c7112286720dddfd30c92a968e.tar.gz |
detachables: Skip "Enable Developer Mode" in DEV mode
When DUT is already in dev mode, don't let user select the "Enable
Developer Mode" selection in the menu. Add disabled_idx_mask to
VbExDisplayMenu API to allow for disabling of menu items in the future
if needed.
BUG=b:63078243, b:35585623
BRANCH=None
TEST=reboot into recovery with DUT already in dev mode. Make sure
can't scroll to "Enable Developer Mode: entry.
reboot into recovery with DUT in normal mode. Make sure
"Enable Developer Mode" entry is selectable.
CQ-DEPEND=CL:565335
Change-Id: Ic71fe6aa2e41337787a0c2278f729356edb155fd
Signed-off-by: Shelley Chen <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/598430
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'firmware/stub')
-rw-r--r-- | firmware/stub/vboot_api_stub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/stub/vboot_api_stub.c b/firmware/stub/vboot_api_stub.c index 834bff1c..c51cef4b 100644 --- a/firmware/stub/vboot_api_stub.c +++ b/firmware/stub/vboot_api_stub.c @@ -52,7 +52,8 @@ VbError_t VbExDisplayScreen(uint32_t screen_type, uint32_t locale) } VbError_t VbExDisplayMenu(uint32_t screen_type, uint32_t locale, - uint32_t selected_index, uint32_t redraw_base) + uint32_t selected_index, uint32_t disabled_idx_mask, + uint32_t redraw_base) { return VBERROR_SUCCESS; } |