在:kernel-3.18/drivers/misc/mediatek/include/mt-plat/mt_boot_common.h有
enum boot_mode_t { NORMAL_BOOT = 0, META_BOOT = 1, RECOVERY_BOOT = 2, SW_REBOOT = 3, FACTORY_BOOT = 4, ADVMETA_BOOT = 5, ATE_FACTORY_BOOT = 6, ALARM_BOOT = 7,#if defined(CONFIG_MTK_KERNEL_POWER_OFF_CHARGING) KERNEL_POWER_OFF_CHARGING_BOOT = 8, LOW_POWER_OFF_CHARGING_BOOT = 9,#endif DONGLE_BOOT = 10, UNKNOWN_BOOT};
切勿关闭:CONFIG_MTK_KERNEL_POWER_OFF_CHARGING,关闭将导致充电状态信息无法正常反馈,视为正常开机;
在:vendor/mediatek/proprietary/bootable/bootloader/lk/platform/mt6735/boot_mode.c 中:
boot_mode_select 函数;
----