去掉长按电源键+音量加和电源键+音量减进入FACTORY或者RECOVERY模式

1.vendor/mediatek/proprietary/bootable/bootloader/lk/platform/mt6580/boot_mode.c

@@ -158,7 +158,7 @@ void boot_mode_select(void)
                    {
                          dprintf(CRITICAL, "%s Detect key\n",MODULE_NAME);
                          dprintf(CRITICAL, "%s Enable factory mode\n",MODULE_NAME);
-                         g_boot_mode = FACTORY_BOOT;
+                         g_boot_mode = NORMAL_BOOT;
                           //video_printf("%s : detect factory mode !\n",MODULE_NAME);
                           return;
                    }
@@ -168,12 +168,13 @@ void boot_mode_select(void)
{
                           dprintf(CRITICAL, "\n%s Check  boot menu\n",MODULE_NAME);
                           dprintf(CRITICAL, "%s Wait 50ms for special keys\n",MODULE_NAME);
-                          mtk_wdt_disable();
+                          //mtk_wdt_disable();
                           /*************************/
-                          mt65xx_backlight_on();
+                          //mt65xx_backlight_on();
                           /*************************/
-                           boot_mode_menu_select();
-                           mtk_wdt_init();
+                           //boot_mode_menu_select();
+                           //mtk_wdt_init();
+						   g_boot_mode = NORMAL_BOOT;
                            return;
}
@@ -181,7 +182,7 @@ void boot_mode_select(void)
{
-                g_boot_mode = RECOVERY_BOOT;
+                g_boot_mode = NORMAL_BOOT;
                 //video_printf("%s : detect recovery mode !\n",MODULE_NAME);
}

2.vendor/mediatek/proprietary/bootable/bootloader/lk/platform/mt6580/factory.c

@@ -37,7 +37,7 @@ BOOL factory_check_key_trigger(void)
 		{	
 			printf("%s Detect key\n",MODULE_NAME);
 			printf("%s Enable factory mode\n",MODULE_NAME);		
-			g_boot_mode = FACTORY_BOOT;
+			g_boot_mode = NORMAL_BOOT;
 			//video_printf("%s : detect factory mode !\n",MODULE_NAME);
 			return TRUE;
 		}

 

你可能感兴趣的:(MTK,Android)