From ad7ffd69acae026cee8c8e8d3cb0ed074059c7c7 Mon Sep 17 00:00:00 2001 From: Zhou Shihui Date: Sat, 6 Sep 2025 14:21:03 +0800 Subject: [PATCH] get launcher ability Signed-off-by: Zhou Shihui --- services/bundlemgr/src/module_profile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/bundlemgr/src/module_profile.cpp b/services/bundlemgr/src/module_profile.cpp index 9f9f848b9a..3ea3d29a09 100644 --- a/services/bundlemgr/src/module_profile.cpp +++ b/services/bundlemgr/src/module_profile.cpp @@ -2780,7 +2780,7 @@ bool ToInnerBundleInfo( // get launcher application and ability bool isLauncherEntity = std::find(skill.entities.begin(), skill.entities.end(), ServiceConstants::FLAG_HOME_INTENT_FROM_SYSTEM) != skill.entities.end(); - if (isLauncherEntity && transformParam.isPreInstallApp) { + if (isLauncherEntity && transformParam.isPreInstallApp && transformParam.isSystemApp) { applicationInfo.isLauncherApp = true; abilityInfo.isLauncherAbility = true; APP_LOGI_NOFUNC("startWindowIconId %{public}s_%{public}s_%{public}s_%{public}d", -- Gitee