From 96185011cdcb31b806dc04ae717bd22c661f1785 Mon Sep 17 00:00:00 2001 From: Jim Wu Date: Fri, 10 Jan 2020 20:51:15 +0800 Subject: [PATCH] Fix system app crash on Android Q --- .../src/main/cpp/main/include/art/runtime/oat_file_manager.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/edxp-core/src/main/cpp/main/include/art/runtime/oat_file_manager.h b/edxp-core/src/main/cpp/main/include/art/runtime/oat_file_manager.h index 2f10b5b0..a9445ee5 100644 --- a/edxp-core/src/main/cpp/main/include/art/runtime/oat_file_manager.h +++ b/edxp-core/src/main/cpp/main/include/art/runtime/oat_file_manager.h @@ -17,7 +17,10 @@ namespace art { if (api_level == ANDROID_P) { HOOK_FUNC(SetOnlyUseSystemOatFiles, "_ZN3art14OatFileManager24SetOnlyUseSystemOatFilesEv"); - + } + if (api_level == ANDROID_Q) { + HOOK_FUNC(SetOnlyUseSystemOatFiles, + "_ZN3art14OatFileManager24SetOnlyUseSystemOatFilesEbb"); } };