因为设备特殊的原因,只有power键,并没有控制音量的物理按键。所以想要 remount 设备的话,需要更改一下代码的逻辑。
代码路径vendor/mediatek/proprietary/bootable/bootloader/lk/app/mt_boot/sec_unlock.c
@@ -335,8 +335,8 @@ void fastboot_oem_unlock(const char *arg, void *data, unsigned sz)
unlock_warranty();
- while (1) {
- if (mtk_detect_key(MT65XX_MENU_SELECT_KEY)) {
//VOL_UP
+ /*while (1) {
+ if (mtk_detect_key(MT65XX_MENU_SELECT_KEY)) { //VOL_UP
fastboot_info("Start unlock flow\n");
//Invoke security check after confirming "yes" by user
ret = fastboot_get_unlock_perm(&unlock_allowed);
@@ -383,8 +383,44 @@ void fastboot_oem_unlock(const char *arg, void *data, unsigned sz)
} else {
//If we press othe