From fc391979f434fec4c6acda84835ea53615d841a1 Mon Sep 17 00:00:00 2001 From: Gang G Chen Date: Tue, 19 Aug 2025 10:49:04 +0800 Subject: [PATCH] Set device to UNLOCKED state Signed-off-by: Gang G Chen --- kernelflinger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernelflinger.c b/kernelflinger.c index dba41f8c..c063ab61 100644 --- a/kernelflinger.c +++ b/kernelflinger.c @@ -1244,6 +1244,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) if (need_lock) set_current_state(LOCKED); + set_current_state(UNLOCKED); ret = set_device_security_info(NULL); if (EFI_ERROR(ret)) { efi_perror(ret, L"Failed to init security info, enter fastboot mode");