From 1058c4ddcd31729ff0314b78e8ef11fa386662ac Mon Sep 17 00:00:00 2001 From: wangshengwen333 Date: Mon, 17 Feb 2025 16:46:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A2=84=E5=8A=A0=E8=BD=BDlibnative=20so?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangshengwen333 --- modules/nweb_adapter/nwebspawn_adapter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/nweb_adapter/nwebspawn_adapter.cpp b/modules/nweb_adapter/nwebspawn_adapter.cpp index 6a54d3d0..c791e94e 100644 --- a/modules/nweb_adapter/nwebspawn_adapter.cpp +++ b/modules/nweb_adapter/nwebspawn_adapter.cpp @@ -155,6 +155,12 @@ static int PreLoadNwebSpawn(AppSpawnMgr *content) } // register RegChildLooper(&content->content, RunChildProcessor); + const std::string libName = "/system/lib64/libnative_drawing_ndk.z.so"; + void *handle = dlopen(libName.c_str(), RTLD_NOW | RTLD_GLOBAL); + if (handle == nullptr) { + APPSPAWN_LOGE("dlopen libohos_adapter_glue_source.z.so failed, errno: %{public}d", errno); + return -1; + } return 0; } -- Gitee From 431450a168bbbabe578468d16685614a0b9672c4 Mon Sep 17 00:00:00 2001 From: wangshengwen333 Date: Tue, 18 Feb 2025 15:37:46 +0800 Subject: [PATCH 2/2] --amend Signed-off-by: wangshengwen333 --- modules/nweb_adapter/nwebspawn_adapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nweb_adapter/nwebspawn_adapter.cpp b/modules/nweb_adapter/nwebspawn_adapter.cpp index c791e94e..bea29a8f 100644 --- a/modules/nweb_adapter/nwebspawn_adapter.cpp +++ b/modules/nweb_adapter/nwebspawn_adapter.cpp @@ -155,7 +155,7 @@ static int PreLoadNwebSpawn(AppSpawnMgr *content) } // register RegChildLooper(&content->content, RunChildProcessor); - const std::string libName = "/system/lib64/libnative_drawing_ndk.z.so"; + const std::string libName = "/system/lib/platformsdk/libnative_drawing_ndk.z.so"; void *handle = dlopen(libName.c_str(), RTLD_NOW | RTLD_GLOBAL); if (handle == nullptr) { APPSPAWN_LOGE("dlopen libohos_adapter_glue_source.z.so failed, errno: %{public}d", errno); -- Gitee