From 100e3466c1d559ace0e01867c3cc4ff2839432c2 Mon Sep 17 00:00:00 2001 From: zhangyuhang72 Date: Thu, 11 Sep 2025 10:27:18 +0800 Subject: [PATCH] =?UTF-8?q?Native=E5=AD=90=E8=BF=9B=E7=A8=8B=E4=B8=8D?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=B3=BB=E7=BB=9F=E7=BA=A7=E5=92=8C=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E9=97=B4hsp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangyuhang72 Change-Id: Ie90b33a27c6ec5e6899089f9dff9b181ad925399 --- frameworks/native/appkit/app/child_main_thread.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frameworks/native/appkit/app/child_main_thread.cpp b/frameworks/native/appkit/app/child_main_thread.cpp index 2b6e24adc0c..262a67d8951 100644 --- a/frameworks/native/appkit/app/child_main_thread.cpp +++ b/frameworks/native/appkit/app/child_main_thread.cpp @@ -281,10 +281,13 @@ void ChildMainThread::HandleLoadNative() void ChildMainThread::InitNativeLib(const BundleInfo &bundleInfo) { HspList hspList; - ErrCode ret = DelayedSingleton::GetInstance()->GetBaseSharedBundleInfos(bundleInfo.name, hspList, - AppExecFwk::GetDependentBundleInfoFlag::GET_ALL_DEPENDENT_BUNDLE_INFO); - if (ret != ERR_OK) { - TAG_LOGE(AAFwkTag::APPKIT, "Get base shared bundle infos failed: %{public}d", ret); + if (processInfo_->childProcessType != CHILD_PROCESS_TYPE_NATIVE && + processInfo_->childProcessType != CHILD_PROCESS_TYPE_NATIVE_ARGS) { + ErrCode ret = DelayedSingleton::GetInstance()->GetBaseSharedBundleInfos(bundleInfo.name, + hspList, AppExecFwk::GetDependentBundleInfoFlag::GET_ALL_DEPENDENT_BUNDLE_INFO); + if (ret != ERR_OK) { + TAG_LOGE(AAFwkTag::APPKIT, "Get base shared bundle infos failed: %{public}d", ret); + } } AppLibPathMap appLibPaths {}; -- Gitee