From 734a312b709b50c521bc45845230c989f53408e5 Mon Sep 17 00:00:00 2001 From: Nikita Travkin Date: Fri, 17 Jul 2020 17:26:07 +0500 Subject: [PATCH] app: aboot: Use HOME button to enter fastboot mode In lk2nd KEY_HOME keycode is used as a generic "go into fastboot" button that doesn't carry any extra meaning in the menus. As original caf lk doesn't use this key for anything modern we are safe to reassign it's meaning to "fastboot" in aboot. (cherry picked from commit 0bbd2ebebe1f31ffe0a60cc8334498efdcc6dde4) --- app/aboot/aboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c index 0b4caa74e..b8337c872 100644 --- a/app/aboot/aboot.c +++ b/app/aboot/aboot.c @@ -5593,10 +5593,10 @@ void aboot_init(const struct app_descriptor *app) } if (!boot_into_fastboot) { - if (keys_get_state(KEY_HOME) || keys_get_state(KEY_VOLUMEUP)) + if (keys_get_state(KEY_VOLUMEUP)) boot_into_recovery = 1; if (!boot_into_recovery && - (keys_get_state(KEY_BACK) || keys_get_state(KEY_VOLUMEDOWN))) + (keys_get_state(KEY_HOME) || keys_get_state(KEY_BACK) || keys_get_state(KEY_VOLUMEDOWN))) boot_into_fastboot = true; } #if NO_KEYPAD_DRIVER