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 EFIAPI
MenuKeysDetectionInit (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文章来源:https://www.toymoban.com/news/detail-828630.html
LINUX\android\bootable\bootloader\edk2\QcomModulePkg\Library\avb\VerifiedBoot.c文章来源地址https://www.toymoban.com/news/detail-828630.html
--- 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:
到了这里,关于Android开机不显示bootloader界面的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!