From 70e4cf4635d19581aaac2d41aa696b7607c7e260 Mon Sep 17 00:00:00 2001 From: hanchen45 Date: Sat, 27 Jun 2026 16:51:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AD=97=E6=AE=B5=E4=BC=A0?= =?UTF-8?q?=E9=80=92=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Agent Signed-off-by: hanchen45 🤖‍ AI[0%] 👌 AI Adopted[0%] 🧑 Human[100%] --- services/abilitymgr/src/ability_manager_stub.cpp | 2 +- .../abilitymgr/src/deeplink_reserve/deeplink_reserve_config.cpp | 2 +- .../abilitymgr/src/scene_board/ui_ability_lifecycle_manager.cpp | 2 +- services/abilitymgr/src/utils/start_ability_utils.cpp | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/services/abilitymgr/src/ability_manager_stub.cpp b/services/abilitymgr/src/ability_manager_stub.cpp index a1fc252423..e40dc153eb 100644 --- a/services/abilitymgr/src/ability_manager_stub.cpp +++ b/services/abilitymgr/src/ability_manager_stub.cpp @@ -2095,8 +2095,8 @@ int AbilityManagerStub::CloseUIAbilityBySCBInner(MessageParcel &data, MessagePar if (data.ReadBool()) { sessionInfo = data.ReadParcelable(); } - uint32_t sceneFlag = data.ReadUint32(); bool isUserRequestedExit = data.ReadBool(); + uint32_t sceneFlag = data.ReadUint32(); int32_t result = CloseUIAbilityBySCB(sessionInfo, isUserRequestedExit, sceneFlag); reply.WriteInt32(result); return NO_ERROR; diff --git a/services/abilitymgr/src/deeplink_reserve/deeplink_reserve_config.cpp b/services/abilitymgr/src/deeplink_reserve/deeplink_reserve_config.cpp index 404f7832cd..6a709b6672 100644 --- a/services/abilitymgr/src/deeplink_reserve/deeplink_reserve_config.cpp +++ b/services/abilitymgr/src/deeplink_reserve/deeplink_reserve_config.cpp @@ -193,7 +193,7 @@ void DeepLinkReserveConfig::LoadReservedUrilItem(const nlohmann::json &jsonUriOb } if (jsonUriObject.contains(PATH_NAME) && jsonUriObject.at(PATH_NAME).is_string()) { std::string pathName = jsonUriObject.at(PATH_NAME).get(); - reserveUri.path = PATH_NAME; + reserveUri.path = pathName; TAG_LOGD(AAFwkTag::ABILITYMGR, "path:%{public}s", reserveUri.path.c_str()); } if (jsonUriObject.contains(PATH_START_WITH_NAME) && jsonUriObject.at(PATH_START_WITH_NAME).is_string()) { diff --git a/services/abilitymgr/src/scene_board/ui_ability_lifecycle_manager.cpp b/services/abilitymgr/src/scene_board/ui_ability_lifecycle_manager.cpp index 322c17c771..58a09e77a8 100644 --- a/services/abilitymgr/src/scene_board/ui_ability_lifecycle_manager.cpp +++ b/services/abilitymgr/src/scene_board/ui_ability_lifecycle_manager.cpp @@ -4252,7 +4252,7 @@ int UIAbilityLifecycleManager::ChangeAbilityVisibility(sptr token CHECK_POINTER_AND_RETURN(callerSessionInfo, ERR_INVALID_VALUE); CHECK_POINTER_AND_RETURN(callerSessionInfo->sessionToken, ERR_INVALID_VALUE); auto callerSession = iface_cast(callerSessionInfo->sessionToken); - TAG_LOGI(AAFwkTag::ABILITYMGR, "got callerSession, call ChangeSessionVisibilityWithStatusBar()"); + TAG_LOGI(AAFwkTag::ABILITYMGR, "callerSession ChangeSessionVisibilityWithStatusBar, isShow:%{public}d", isShow); CHECK_POINTER_AND_RETURN(callerSession, ERR_INVALID_VALUE); return static_cast(callerSession->ChangeSessionVisibilityWithStatusBar(callerSessionInfo, isShow)); } diff --git a/services/abilitymgr/src/utils/start_ability_utils.cpp b/services/abilitymgr/src/utils/start_ability_utils.cpp index 8b91441f8a..e2bfb250b4 100644 --- a/services/abilitymgr/src/utils/start_ability_utils.cpp +++ b/services/abilitymgr/src/utils/start_ability_utils.cpp @@ -213,6 +213,7 @@ std::shared_ptr QueryAbilityInfo(const Want &want, int32_t use { auto bms = AbilityUtil::GetBundleManagerHelper(); CHECK_POINTER_AND_RETURN(bms, nullptr); + abilityInfoFlag |= static_cast(AppExecFwk::AbilityInfoFlag::GET_ABILITY_INFO_WITH_FUSION); auto request = std::make_shared(); if (appIndex > 0 && appIndex <= AbilityRuntime::GlobalConstant::MAX_APP_CLONE_INDEX) { IN_PROCESS_CALL_WITHOUT_RET(bms->QueryCloneAbilityInfo(want.GetElement(), abilityInfoFlag, appIndex,