diff --git a/frameworks/native/runtime/js_runtime.cpp b/frameworks/native/runtime/js_runtime.cpp index 9ee02abcae..238a908f0d 100644 --- a/frameworks/native/runtime/js_runtime.cpp +++ b/frameworks/native/runtime/js_runtime.cpp @@ -23,6 +23,7 @@ #include #include #include +#include #include "accesstoken_kit.h" #include "constants.h" @@ -649,6 +650,10 @@ void JsRuntime::SetAppLibPath(const AppLibPathMap& appLibPaths, const bool& isSy for (const auto &appLibPath : appLibPaths) { moduleManager->SetAppLibPath(appLibPath.first, appLibPath.second, isSystemApp); } + + if (!isSystemApp) { + dlns_disable(); + } } void JsRuntime::InitSourceMap(const std::shared_ptr operatorObj)