diff --git a/frameworks/native/appkit/app/main_thread.cpp b/frameworks/native/appkit/app/main_thread.cpp index 01a08e7b5767f1bf9544629a646ba2633efa31ce..a62c214a321e8633787c6eaae60e94c81902c938 100644 --- a/frameworks/native/appkit/app/main_thread.cpp +++ b/frameworks/native/appkit/app/main_thread.cpp @@ -1646,7 +1646,7 @@ void MainThread::HandleLaunchApplication(const AppLaunchData &appLaunchData, con } else { #endif if (IsEtsAPP(appInfo)) { - AbilityRuntime::ETSRuntime::SetAppLibPath(appLibPaths); + AbilityRuntime::ETSRuntime::SetAppLibPath(appLibPaths, appAbcLibPaths); } else { AbilityRuntime::JsRuntime::SetAppLibPath(appLibPaths, isSystemApp); } diff --git a/frameworks/native/runtime/ets_runtime.cpp b/frameworks/native/runtime/ets_runtime.cpp index cbc2a3854c834c149fe65159c214c25bb47192d8..8f63bc54e8f13d11a15d932cd901d0a6af0a67bd 100644 --- a/frameworks/native/runtime/ets_runtime.cpp +++ b/frameworks/native/runtime/ets_runtime.cpp @@ -232,7 +232,7 @@ std::unique_ptr ETSRuntime::Create(const Options &options, std::uniq return instance; } -void ETSRuntime::SetAppLibPath(const AppLibPathMap &appLibPaths) +void ETSRuntime::SetAppLibPath(const AppLibPathMap &appLibPaths, const AppLibPathMap& appAbcLibPaths) { TAG_LOGD(AAFwkTag::ETSRUNTIME, "SetAppLibPath called"); if (!RegisterETSEnvFuncs()) { diff --git a/interfaces/inner_api/runtime/include/ets_runtime.h b/interfaces/inner_api/runtime/include/ets_runtime.h index 2b332eee8a3e45ffd233dcde20d3b1f52c0c6b25..e478e54768d3568b26b3aa9cdef7d75483daf32a 100644 --- a/interfaces/inner_api/runtime/include/ets_runtime.h +++ b/interfaces/inner_api/runtime/include/ets_runtime.h @@ -46,7 +46,7 @@ namespace AbilityRuntime { class ETSRuntime : public Runtime { public: static std::unique_ptr Create(const Options &options, std::unique_ptr &jsRuntime); - static void SetAppLibPath(const AppLibPathMap &appLibPaths); + static void SetAppLibPath(const AppLibPathMap &appLibPaths, const AppLibPathMap& appAbcLibPaths); ~ETSRuntime() override; Language GetLanguage() const override {