From b1e232b7851d2d3531779789c2c3755d7972807f Mon Sep 17 00:00:00 2001 From: Joel Kitching Date: Thu, 14 May 2020 14:21:49 +0800 Subject: vboot/ui: hide phone recovery flow when disabled If phone recovery flow is disabled according to vb2api_phone_recovery_enabled(), then hide the "Recovery using phone" menu item from the RECOVERY_SELECT screen. BUG=b:146399181, b:147744345 TEST=make clean && make runtests TEST=Upgrade secdata_kernel to v1, boot to recovery mode, check menu BRANCH=none Change-Id: Id2d23b5a1cc31dec12befa60a9a52790b129495c Signed-off-by: Joel Kitching Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2201056 Reviewed-by: Joel Kitching Reviewed-by: Yu-Ping Wu Tested-by: Joel Kitching Commit-Queue: Joel Kitching --- tests/vb2_ui_tests.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/vb2_ui_tests.c') diff --git a/tests/vb2_ui_tests.c b/tests/vb2_ui_tests.c index 1bd9e8b9..a45fba85 100644 --- a/tests/vb2_ui_tests.c +++ b/tests/vb2_ui_tests.c @@ -9,6 +9,7 @@ #include "2common.h" #include "2misc.h" #include "2nvstorage.h" +#include "2struct.h" #include "2ui.h" #include "2ui_private.h" #include "test_common.h" @@ -161,6 +162,7 @@ static void reset_common_data(enum reset_type t) ctx->flags |= VB2_CONTEXT_DEVELOPER_MODE; sd = vb2_get_sd(ctx); + sd->status |= VB2_SD_STATUS_SECDATA_KERNEL_INIT; /* For try_recovery_action */ invalid_disk_last = -1; -- cgit v1.2.1