!7156 hms能力下沉支持导入

Merge pull request !7156 from donglin/runtime
This commit is contained in:
openharmony_ci
2023-12-22 02:01:37 +00:00
committed by Gitee
5 changed files with 80 additions and 0 deletions
@@ -160,6 +160,10 @@ std::string JsModuleReader::GetPresetAppHapPath(const std::string& inputPath, co
}
std::string tmpPath = inputPath.substr(inputPath.find_first_of("/") + 1);
const std::string sharedBundleName = tmpPath.substr(0, tmpPath.find_first_of("/"));
if (baseSharedBundleInfos.size() == 0) {
presetAppHapPath = "/system/app/appServiceFwk/" + sharedBundleName + "/" + moduleName + ".hsp";
return presetAppHapPath;
}
for (const auto &info : baseSharedBundleInfos) {
if ((info.bundleName == sharedBundleName) && (info.moduleName == moduleName)) {
presetAppHapPath = info.hapPath;