From 992a9ea2f926d945e38a9807568d4e5e5b5e6b9f Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 11 Feb 2019 02:26:15 -0500 Subject: [PATCH] Fix EMUI 9 detection --- native/jni/core/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native/jni/core/init.cpp b/native/jni/core/init.cpp index 8011212a1..639d03dd7 100644 --- a/native/jni/core/init.cpp +++ b/native/jni/core/init.cpp @@ -117,7 +117,7 @@ static void parse_cmdline(struct cmdline *cmd) { skip_initramfs = true; } else if (key == "androidboot.android_dt_dir") { strcpy(cmd->dt_dir, value); - } else if (key == "entry_recovery") { + } else if (key == "enter_recovery") { enter_recovery = value[0] == '1'; } else if (key == "androidboot.hardware") { kirin = strstr(value, "kirin") || strstr(value, "hi3660");