Android10.0:展讯项目无音量上下键,跳过音量键确认解锁方案

修改路径:bsp/bootloader/u-boot15/common/loader/fastboot.c

sy@sy:~/work1/f300/bsp/bootloader/u-boot15/common$ git diff loader/fastboot.c
diff --git a/common/loader/fastboot.c b/common/loader/fastboot.c
index 744e4c3..2177ef8 100644
--- a/common/loader/fastboot.c
+++ b/common/loader/fastboot.c
@@ -986,7 +986,8 @@ void fb_cmd_flashing(const char *arg, void *data, uint64_t sz)
                while(!butt_check) {
                        /* continue check till button pressed */
                        key_code = wait_for_keypress();
-                       if (key_code == KEY_VOLUMEDOWN) {
+                       /* if (key_code == KEY_VOLUMEDOWN) { */
+                       if (true) {
                                butt_check = true;
                        } else if (key_code == KEY_VOLUMEUP) {
                                lcd_printf("   Info:user cancelled!\n");

你可能感兴趣的:(android系统开发,android,其他,aosp)