From 19e3e81268d4529d3d7653d013b262e589b80527 Mon Sep 17 00:00:00 2001 From: l30054665 Date: Thu, 15 May 2025 15:42:18 +0800 Subject: [PATCH] pkg Signed-off-by: l30054665 --- .../implementation/include/device_manager_service_impl.h | 2 +- services/implementation/src/device_manager_service_impl.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/implementation/include/device_manager_service_impl.h b/services/implementation/include/device_manager_service_impl.h index aa1feb425..4e12021af 100644 --- a/services/implementation/include/device_manager_service_impl.h +++ b/services/implementation/include/device_manager_service_impl.h @@ -264,7 +264,7 @@ private: bool &isLastLnnAcl, const std::string &localUdid); void BindTargetImpl(uint64_t tokenId, const std::string &pkgName, const PeerTargetId &targetId, const std::map &bindParam); - void GetBindCallerInfo(DmBindCallerInfo &bindCallerInfo); + void GetBindCallerInfo(DmBindCallerInfo &bindCallerInfo, const std::string &pkgName); void SetBindCallerInfoToBindParam(const std::map &bindParam, std::map &bindParamTmp, const DmBindCallerInfo &bindCallerInfo); std::string GetBundleLable(const std::string &bundleName); diff --git a/services/implementation/src/device_manager_service_impl.cpp b/services/implementation/src/device_manager_service_impl.cpp index 7f64a2897..c76a206c9 100644 --- a/services/implementation/src/device_manager_service_impl.cpp +++ b/services/implementation/src/device_manager_service_impl.cpp @@ -1673,7 +1673,7 @@ int32_t DeviceManagerServiceImpl::BindTarget(const std::string &pkgName, const P return ERR_DM_INPUT_PARA_INVALID; } DmBindCallerInfo bindCallerInfo; - GetBindCallerInfo(bindCallerInfo); + GetBindCallerInfo(bindCallerInfo, pkgName); std::map bindParamTmp; SetBindCallerInfoToBindParam(bindParam, bindParamTmp, bindCallerInfo); uint64_t tokenId = IPCSkeleton::GetCallingTokenID(); @@ -2592,7 +2592,7 @@ void DeviceManagerServiceImpl::HandleCommonEventBroadCast(const std::vector(DmRole::DM_ROLE_USER); } - std::string hostPkgLabel = GetBundleLable(bundleName); + std::string hostPkgLabel = GetBundleLable(pkgName); bindCallerInfo.userId = userId; bindCallerInfo.tokenId = callingTokenId; bindCallerInfo.bindLevel = bindLevel; -- Gitee