Skip to content

Commit

Permalink
app: aboot: Use HOME button to enter fastboot mode
Browse files Browse the repository at this point in the history
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 0bbd2eb)
  • Loading branch information
TravMurav committed Feb 18, 2025
1 parent 6a205e5 commit 734a312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/aboot/aboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 734a312

Please sign in to comment.