From b1bc7200a6d351d208d33336257a709877932bc2 Mon Sep 17 00:00:00 2001 From: solohsu Date: Mon, 3 Aug 2020 17:57:07 +0800 Subject: [PATCH] Disable resources hooking as default Resources hooking might has been broken since Q --- edxp-core/src/main/cpp/main/src/config_manager.cpp | 2 +- edxp-core/src/main/cpp/main/src/config_manager.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/edxp-core/src/main/cpp/main/src/config_manager.cpp b/edxp-core/src/main/cpp/main/src/config_manager.cpp index 9d8830cd..bb3f59ba 100644 --- a/edxp-core/src/main/cpp/main/src/config_manager.cpp +++ b/edxp-core/src/main/cpp/main/src/config_manager.cpp @@ -86,7 +86,7 @@ namespace edxp { dynamic_modules_enabled_ = access(GetConfigPath("dynamicmodules").c_str(), F_OK) == 0; black_white_list_enabled_ = access(GetConfigPath("blackwhitelist").c_str(), F_OK) == 0; deopt_boot_image_enabled_ = access(GetConfigPath("deoptbootimage").c_str(), F_OK) == 0; - resources_hook_enabled_ = access(GetConfigPath("disable_resources").c_str(), F_OK) != 0; + resources_hook_enabled_ = access(GetConfigPath("enable_resources").c_str(), F_OK) == 0; no_module_log_enabled_ = access(GetConfigPath("disable_modules_log").c_str(), F_OK) == 0; hidden_api_bypass_enabled_ = access(GetConfigPath("disable_hidden_api_bypass").c_str(), F_OK) != 0; diff --git a/edxp-core/src/main/cpp/main/src/config_manager.h b/edxp-core/src/main/cpp/main/src/config_manager.h index f1b9faf1..cc05405a 100644 --- a/edxp-core/src/main/cpp/main/src/config_manager.h +++ b/edxp-core/src/main/cpp/main/src/config_manager.h @@ -63,7 +63,7 @@ namespace edxp { bool dynamic_modules_enabled_ = false; bool deopt_boot_image_enabled_ = false; bool no_module_log_enabled_ = false; - bool resources_hook_enabled_ = true; + bool resources_hook_enabled_ = false; // snapshot at boot bool use_white_list_snapshot_ = false; std::vector white_list_default_;