Signed-off-by: xuchenghua <xuchenghua09@huawei.com>
Change-Id: Icbeb32a13c1f3f0154b36c4fa0d2ad0c37526256
This commit is contained in:
xuchenghua 2022-08-24 15:47:33 +08:00
parent 4ec2b0744a
commit e4dd5e1f8a

View File

@ -217,16 +217,16 @@ void AppMgrServiceInner::MakeProcessName(
if (!appInfo) {
return;
}
if (!appInfo->process.empty()) {
processName = appInfo->process;
return;
}
// check after abilityInfo, because abilityInfo contains extension process.
if (hapModuleInfo.isStageBasedModel && !hapModuleInfo.process.empty()) {
processName = hapModuleInfo.process;
HILOG_INFO("Stage mode, Make processName:%{public}s", processName.c_str());
return;
}
if (!appInfo->process.empty()) {
processName = appInfo->process;
return;
}
processName = appInfo->bundleName;
}