Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1308773
  • 博文数量: 478
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4833
  • 用 户 组: 普通用户
  • 注册时间: 2014-06-28 11:12
文章分类

全部博文(478)

文章存档

2019年(1)

2018年(27)

2017年(21)

2016年(171)

2015年(258)

我的朋友

分类: Android平台

2016-07-21 11:48:06

[FAQ14484]如何修改L版本recovery mode 小机器人界面进入菜单,由volume up&power改为直接按power(如同KK以前版本)
2015-07-07
平台...
软件分支...
FAQs 32 of 74
打开MTK_CIP_SUPPORT=yes后make otapackage报错KeyError:"/custom"

内容

[DESCRIPTION]
 
 L版本进入recovery mode 会出现小机器人界面
需同时按volume up & power 才能进入菜单,
如何改为像KK以前版本,直接按power 进入菜单
 
[SOLUTION]
 
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; 
 
 
阅读(1227) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~