From ceae43358efeb2372283cea46f5d3fa60b96bc65 Mon Sep 17 00:00:00 2001 From: yangxiaoshuai2022 Date: Wed, 21 Aug 2024 10:25:53 +0800 Subject: [PATCH] fix the path of debugger DLL Issue:https://gitee.com/openharmony/ability_ability_runtime/issues/IALE7U Signed-off-by: yangxiaoshuai2022 --- frameworks/native/runtime/connect_server_manager.h | 6 +++--- frameworks/native/runtime/js_worker.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frameworks/native/runtime/connect_server_manager.h b/frameworks/native/runtime/connect_server_manager.h index c3f7144753..97b0b3758b 100644 --- a/frameworks/native/runtime/connect_server_manager.h +++ b/frameworks/native/runtime/connect_server_manager.h @@ -23,11 +23,11 @@ using DebuggerPostTask = std::function&&)>; using DebuggerInfo = std::unordered_map>; using InstanceMap = std::unordered_map; #ifdef APP_USE_ARM -constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib/platformsdk/libark_inspector.z.so"; +constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib/libark_inspector.z.so"; #elif defined(APP_USE_X86_64) -constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib64/platformsdk/libark_inspector.z.so"; +constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib64/libark_inspector.z.so"; #else -constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib64/platformsdk/libark_inspector.z.so"; +constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib64/libark_inspector.z.so"; #endif namespace OHOS::AbilityRuntime { class ConnectServerManager final { diff --git a/frameworks/native/runtime/js_worker.cpp b/frameworks/native/runtime/js_worker.cpp index ada96d47aa..dce6905537 100644 --- a/frameworks/native/runtime/js_worker.cpp +++ b/frameworks/native/runtime/js_worker.cpp @@ -58,11 +58,11 @@ const std::string CACHE_DIRECTORY = "el2"; const std::string RESTRICTED_PREFIX_PATH = "abcs/"; const int PATH_THREE = 3; #ifdef APP_USE_ARM -constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib/platformsdk/libark_inspector.z.so"; +constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib/libark_inspector.z.so"; #elif defined(APP_USE_X86_64) -constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib64/platformsdk/libark_inspector.z.so"; +constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib64/libark_inspector.z.so"; #else -constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib64/platformsdk/libark_inspector.z.so"; +constexpr char ARK_DEBUGGER_LIB_PATH[] = "/system/lib64/libark_inspector.z.so"; #endif bool g_debugMode = false;