内容
[DESCRIPTION]
L版本进入recovery mode 会出现小机器人界面
需同时按volume up & power 才能进入菜单,
如何改为像KK以前版本,直接按power 进入菜单
1.alps/bootable/recovery/Ui.cpp
key_long_press(false),
key_down_count(0),
enable_reboot(true),
+ recovery_show_menu_flag(0),
consecutive_power_keys(false),
consecutive_alternate_keys(0),
RecoveryUI::KeyAction RecoveryUI::CheckKey(int key) {
+ if (key == KEY_POWER && recovery_show_menu_flag==false) {
+ recovery_show_menu_flag=true;
+ return TOGGLE;
+ }
if ((IsKeyPressed(KEY_POWER) && key == KEY_VOLUMEUP) || key == KEY_HOME) {
2.alps/bootable/recovery/ui.h
int rel_sum;
+ bool recovery_show_menu_flag;
int consecutive_power_keys;
int consecutive_alternate_keys;
|