Turn it off in the following way
LINUX\android\bootable\bootloader\edk2\QcomModulePkg\Library\BootLib\MenuKeysDetection.c
试了没有生效
--- a/QcomModulePkg/Library/BootLib/MenuKeysDetection.c
+++ b/QcomModulePkg/Library/BootLib/MenuKeysDetection.c
@@ -364,7 +364,8 @@ MenuKeysHandler (IN EFI_EVENT Event, IN VOID *Context)((MenuInfo->Info.MsgInfo->Action == POWEROFF) &&((MenuInfo->Info.MenuType == DISPLAY_MENU_YELLOW) ||(MenuInfo->Info.MenuType == DISPLAY_MENU_ORANGE))))
- ShutdownDevice ();
+ DEBUG ((EFI_D_ERROR, "Skip ShutdownDevice, boot up \n"));
+// ShutdownDevice ();return;}}
@@ -426,6 +427,9 @@ EFI_STATUS EFIAPIMenuKeysDetectionInit (IN VOID *mMenuInfo){EFI_STATUS Status = EFI_SUCCESS;
+
+ return Status;
+OPTION_MENU_INFO *MenuInfo = mMenuInfo;if (FixedPcdGetBool (EnableDisplayMenu)) {
NOTE: If that doesn't work, search for a similar logic, the MenuKeysDetectionInit () function
LINUX\android\bootable\bootloader\edk2\QcomModulePkg\Library\avb\VerifiedBoot.c
--- Library/avb/VerifiedBoot.c (版本 2529)
+++ Library/avb/VerifiedBoot.c (工作副本)
@@ -1515,7 +1515,7 @@if (FfbmStr[0] != '\0' && !TargetBuildVariantUser ()) {DEBUG ((EFI_D_VERBOSE, "Device will boot into FFBM mode\n"));} else {
- Status = DisplayVerifiedBootMenu (DISPLAY_MENU_ORANGE);
+ /**Status = DisplayVerifiedBootMenu (DISPLAY_MENU_ORANGE);if (Status == EFI_SUCCESS) {WaitForExitKeysDetection ();} else {
@@ -1522,7 +1522,7 @@DEBUG ((EFI_D_INFO, "Device is unlocked, Skipping boot verification\n"));MicroSecondDelay (5000000);
- }
+ }**/}break;default: