Android开机不显示bootloader界面

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

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:

相关推荐

  1. Android13 调试,解锁bootloader

    2024-02-20 01:06:02       26 阅读
  2. Android无法开机卡在开机界面问题解决

    2024-02-20 01:06:02       33 阅读
  3. Android 13.0 Recent列表显示某个app

    2024-02-20 01:06:02       53 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-20 01:06:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-20 01:06:02       100 阅读
  3. 在Django里面运行非项目文件

    2024-02-20 01:06:02       82 阅读
  4. Python语言-面向对象

    2024-02-20 01:06:02       91 阅读

热门阅读

  1. C++中max函数的使用及示例

    2024-02-20 01:06:02       54 阅读
  2. C语言:ISBN校验码

    2024-02-20 01:06:02       51 阅读
  3. Python系列(15)—— int类型转string类型

    2024-02-20 01:06:02       46 阅读
  4. Chapter 8 - 15. Congestion Management in TCP Storage Networks

    2024-02-20 01:06:02       60 阅读
  5. 如何交接一个前端项目

    2024-02-20 01:06:02       48 阅读
  6. 2024年首发!高级界面控件Kendo UI全新发布2024 Q1

    2024-02-20 01:06:02       63 阅读
  7. django rest framework 学习笔记2

    2024-02-20 01:06:02       39 阅读
  8. C++ STL 模块 —— 迭代器

    2024-02-20 01:06:02       44 阅读
  9. C++day6

    C++day6

    2024-02-20 01:06:02      55 阅读