IssueNo:#I5825N:【新增特性】不解压HAP加载应用代码

Description:不解压HAP加载应用代码
Sig:SIG_ApplicationFramework
Feature or Bugfix:Feature
Binary Source: No

Signed-off-by: dy_study <dingyao5@huawei.com>
Change-Id: Id5dd2ea1cc773c9603df8af9ca431f45d1032931
This commit is contained in:
dy_study 2022-08-23 12:49:13 +08:00
parent 87a2182a9a
commit db46f0df47

View File

@ -72,7 +72,7 @@ void NAccessibilityExtension::Init(const std::shared_ptr<AppExecFwk::AbilityLoca
moduleName.append("::").append(abilityInfo_->name);
HILOG_INFO("moduleName:%{public}s, srcPath:%{public}s.", moduleName.c_str(), srcPath.c_str());
jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath);
jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath);
if (!jsObj_) {
HILOG_ERROR("Failed to get jsObj_");
return;
@ -454,4 +454,4 @@ void NAccessibilityExtension::GetSrcPath(std::string &srcPath)
}
}
} // namespace Accessibility
} // namespace OHOS
} // namespace OHOS