summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoel Kitching <kitching@google.com>2020-05-14 14:21:49 +0800
committerCommit Bot <commit-bot@chromium.org>2020-05-18 16:13:17 +0000
commitb1e232b7851d2d3531779789c2c3755d7972807f (patch)
tree814b2e5a77e69e364ad90f0b99ccbe41dd0dfcb0 /tests
parent891fc6e942e5aa035e6fec4103880af91cff24c6 (diff)
downloadvboot-b1e232b7851d2d3531779789c2c3755d7972807f.tar.gz
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 <kitching@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2201056 Reviewed-by: Joel Kitching <kitching@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@chromium.org> Tested-by: Joel Kitching <kitching@chromium.org> Commit-Queue: Joel Kitching <kitching@chromium.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/vb2_ui_tests.c2
1 files changed, 2 insertions, 0 deletions
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;