From 783c39caadaab2b1e7093343471e8c3fbfab9a87 Mon Sep 17 00:00:00 2001 From: lishiyu Date: Mon, 17 Jul 2023 01:37:35 +0000 Subject: [PATCH 1/4] add inner interface of QueryHagBundleName Signed-off-by: lishiyu Change-Id: I1d8e6e97f0f7d0785ed1aad836c9c85949c44dda --- ...bundle_framework_core_ipc_interface_code.h | 3 +- .../include/bundlemgr/bundle_mgr_host.h | 1 + .../include/bundlemgr/bundle_mgr_interface.h | 5 ++++ .../include/bundlemgr/bundle_mgr_proxy.h | 2 ++ .../src/bundlemgr/bundle_mgr_host.cpp | 22 +++++++++++++++ .../src/bundlemgr/bundle_mgr_proxy.cpp | 28 +++++++++++++++++++ services/bundlemgr/include/bundle_data_mgr.h | 2 +- .../bundlemgr/include/bundle_mgr_host_impl.h | 1 + services/bundlemgr/src/bundle_data_mgr.cpp | 6 ++-- .../bundlemgr/src/bundle_mgr_host_impl.cpp | 19 +++++++++++++ .../bundle_distributed_manager.cpp | 2 +- .../bundle_connect_ability_mgr.cpp | 4 +-- 12 files changed, 87 insertions(+), 8 deletions(-) diff --git a/interfaces/inner_api/appexecfwk_core/include/bundle_framework_core_ipc_interface_code.h b/interfaces/inner_api/appexecfwk_core/include/bundle_framework_core_ipc_interface_code.h index 73c7464174..fe7057f1fb 100644 --- a/interfaces/inner_api/appexecfwk_core/include/bundle_framework_core_ipc_interface_code.h +++ b/interfaces/inner_api/appexecfwk_core/include/bundle_framework_core_ipc_interface_code.h @@ -143,7 +143,8 @@ enum class BundleMgrInterfaceCode : uint32_t { SET_EXT_NAME_OR_MIME_TO_APP, DEL_EXT_NAME_OR_MIME_TO_APP, QUERY_DATA_GROUP_INFOS, - GET_PREFERENCE_DIR_BY_GROUP_ID + GET_PREFERENCE_DIR_BY_GROUP_ID, + QUERY_APPGALLERY_BUNDLE_NAME }; /* SAID: 401-85 Interface No.85 subservice also provides the following interfaces */ diff --git a/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_host.h b/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_host.h index 54117ec079..258dcca6f6 100644 --- a/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_host.h +++ b/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_host.h @@ -655,6 +655,7 @@ private: ErrCode HandleGetPreferenceDirByGroupId(MessageParcel &data, MessageParcel &reply); + ErrCode HandleQueryAppGalleryBundleName(MessageParcel &data, MessageParcel &reply); private: /** * @brief Write a parcelabe vector objects to the proxy node. diff --git a/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h b/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h index 5293b2bb95..a725a60638 100644 --- a/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h +++ b/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_interface.h @@ -1200,6 +1200,11 @@ public: { return false; } + + virtual bool QueryAppGalleryBundleName(std::string &bundleName) + { + return false; + } }; } // namespace AppExecFwk } // namespace OHOS diff --git a/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_proxy.h b/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_proxy.h index 89f3133d6a..66c553ea27 100644 --- a/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_proxy.h +++ b/interfaces/inner_api/appexecfwk_core/include/bundlemgr/bundle_mgr_proxy.h @@ -831,6 +831,8 @@ public: virtual bool GetGroupDir(const std::string &dataGroupId, std::string &dir) override; + virtual bool QueryAppGalleryBundleName(std::string &bundleName) override; + private: /** * @brief Send a command message from the proxy object. diff --git a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp index 24270b89ed..63b0d78fc6 100644 --- a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp +++ b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp @@ -309,6 +309,8 @@ void BundleMgrHost::init() &BundleMgrHost::HandleQueryDataGroupInfos); funcMap_.emplace(static_cast(BundleMgrInterfaceCode::GET_PREFERENCE_DIR_BY_GROUP_ID), &BundleMgrHost::HandleGetPreferenceDirByGroupId); + funcMap_.emplace(static_cast(BundleMgrInterfaceCode::QUERY_APPGALLERY_BUNDLE_NAME), + &BundleMgrHost::HandleQueryAppGalleryBundleName); } int BundleMgrHost::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) @@ -2782,6 +2784,26 @@ ErrCode BundleMgrHost::HandleGetPreferenceDirByGroupId(MessageParcel &data, Mess return ERR_OK; } +ErrCode BundleMgrHost::HandleQueryAppGalleryBundleName(MessageParcel &data, MessageParcel &reply) +{ + APP_LOGI("QueryAppGalleryBundleName in bundle mgr hoxt start"); + HITRACE_METER_NAME(HITRACE_TAG_APP, __PRETTY_FUNCTION__); + std::string bundleName; + bool ret = QueryAppGalleryBundleName(bundleName); + if (!reply.WriteBool(ret)) { + APP_LOGE("write failed"); + return ERR_APPEXECFWK_PARCEL_ERROR; + } + if (ret) { + if (!reply.WriteString(bundleName)) { + APP_LOGE("write failed"); + return ERR_APPEXECFWK_PARCEL_ERROR; + } + } + APP_LOGE("BundleName is %{public}s",bundleName.c_str()); + return ERR_OK; +} + template bool BundleMgrHost::WriteParcelableIntoAshmem( T &parcelable, const char *ashmemName, MessageParcel &reply) diff --git a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp index 9ddb2fec87..3760af388f 100644 --- a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp +++ b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp @@ -3610,6 +3610,34 @@ bool BundleMgrProxy::GetGroupDir(const std::string &dataGroupId, std::string &di return true; } +bool BundleMgrProxy::QueryAppGalleryBundleName(std::string &bundleName) +{ + APP_LOGI("QueryAppGalleryBundleName in bundle proxy start"); + HITRACE_METER_NAME(HITRACE_TAG_APP, __PRETTY_FUNCTION__); + MessageParcel data; + if (!data.WriteInterfaceToken(GetDescriptor())) { + APP_LOGE("fail to QueryAppGalleryBundleName due to write InterfaceToken failed."); + return false; + } + + MessageParcel reply; + if (!SendTransactCmd(BundleMgrInterfaceCode::QUERY_APPGALLERY_BUNDLE_NAME, data, reply)) { + APP_LOGE("fail to QueryAppGalleryBundleName from server"); + return false; + } + if (!reply.ReadBool()) { + APP_LOGE("reply result false"); + return false; + } + bundleName = reply.ReadString(); + if(bundleName.length() > Constants::MAX_BUNDLE_NAME) { + APP_LOGE("fail to QueryAppGalleryBundleName from server"); + return false; + } + APP_LOGD("bundleName is %{public}s", bundleName.c_str()); + return true; +} + template bool BundleMgrProxy::GetParcelableInfo(BundleMgrInterfaceCode code, MessageParcel &data, T &parcelableInfo) { diff --git a/services/bundlemgr/include/bundle_data_mgr.h b/services/bundlemgr/include/bundle_data_mgr.h index c8f6ceca2b..8efba2a6f7 100644 --- a/services/bundlemgr/include/bundle_data_mgr.h +++ b/services/bundlemgr/include/bundle_data_mgr.h @@ -825,7 +825,7 @@ public: const std::string &abilityName, const std::string &extName, const std::string &mimeType); ErrCode DelExtNameOrMIMEToApp(const std::string &bundleName, const std::string &moduleName, const std::string &abilityName, const std::string &extName, const std::string &mimeType); - bool QueryHagAbilityName(std::string &bundleName, std::string &abilityName); + bool QueryAppGalleryAbilityName(std::string &bundleName, std::string &abilityName); bool QueryDataGroupInfos(const std::string &bundleName, int32_t userId, std::vector &infos) const; bool GetGroupDir(const std::string &dataGroupId, std::string &dir, int32_t userId = Constants::UNSPECIFIED_USERID) const; diff --git a/services/bundlemgr/include/bundle_mgr_host_impl.h b/services/bundlemgr/include/bundle_mgr_host_impl.h index 6c3c740cf1..d58ccd6aed 100644 --- a/services/bundlemgr/include/bundle_mgr_host_impl.h +++ b/services/bundlemgr/include/bundle_mgr_host_impl.h @@ -796,6 +796,7 @@ public: virtual bool QueryDataGroupInfos(const std::string &bundleName, int32_t userId, std::vector &infos) override; virtual bool GetGroupDir(const std::string &dataGroupId, std::string &dir) override; + virtual bool QueryAppGalleryBundleName(std::string &bundleName) override; void SetBrokerServiceStatus(bool isServiceExisted); private: diff --git a/services/bundlemgr/src/bundle_data_mgr.cpp b/services/bundlemgr/src/bundle_data_mgr.cpp index 7428a74dde..f42db9380d 100644 --- a/services/bundlemgr/src/bundle_data_mgr.cpp +++ b/services/bundlemgr/src/bundle_data_mgr.cpp @@ -5074,9 +5074,9 @@ bool BundleDataMgr::MatchPrivateType(const Want &want, return false; } -bool BundleDataMgr::QueryHagAbilityName(std::string &bundleName, std::string &abilityName) +bool BundleDataMgr::QueryAppGalleryAbilityName(std::string &bundleName, std::string &abilityName) { - APP_LOGD("QueryHagAbilityName called"); + APP_LOGD("QueryAppGalleryAbilityName called"); AbilityInfo abilityInfo; ExtensionAbilityInfo extensionInfo; Want want; @@ -5099,7 +5099,7 @@ bool BundleDataMgr::QueryHagAbilityName(std::string &bundleName, std::string &ab bundleName.c_str(), abilityName.c_str()); return false; } - APP_LOGD("QueryHagAbilityName bundleName: %{public}s, abilityName: %{public}s", + APP_LOGD("QueryAppGalleryAbilityName bundleName: %{public}s, abilityName: %{public}s", bundleName.c_str(), abilityName.c_str()); return true; } diff --git a/services/bundlemgr/src/bundle_mgr_host_impl.cpp b/services/bundlemgr/src/bundle_mgr_host_impl.cpp index 997201d112..b2196729ed 100644 --- a/services/bundlemgr/src/bundle_mgr_host_impl.cpp +++ b/services/bundlemgr/src/bundle_mgr_host_impl.cpp @@ -2807,10 +2807,29 @@ bool BundleMgrHostImpl::GetGroupDir(const std::string &dataGroupId, std::string return dataMgr->GetGroupDir(dataGroupId, dir); } +<<<<<<< HEAD void BundleMgrHostImpl::SetBrokerServiceStatus(bool isServiceExisted) { APP_LOGD("broker service status is %{public}d", isServiceExisted); isBrokerServiceExisted_ = isServiceExisted; +======= +bool BundleMgrHostImpl::QueryAppGalleryBundleName(std::string &bundleName) +{ + APP_LOGI("QueryAppGalleryBundleName in bundle host impl start"); + auto dataMgr = GetDataMgrFromService(); + if (dataMgr == nullptr) { + APP_LOGE("DataMgr is nullptr"); + return false; + } + std::string abilityName; + bool ret = dataMgr->QueryAppGalleryAbilityName(bundleName, abilityName); + if (!ret) { + APP_LOGE("get bundleName failed"); + return false; + } + APP_LOGD("bundleName is %{public}s",bundleName.c_str()); + return true; +>>>>>>> add inner interface of QueryHagBundleName } } // namespace AppExecFwk } // namespace OHOS diff --git a/services/bundlemgr/src/distributed_manager/bundle_distributed_manager.cpp b/services/bundlemgr/src/distributed_manager/bundle_distributed_manager.cpp index a93eb9bdda..70a5d18a59 100644 --- a/services/bundlemgr/src/distributed_manager/bundle_distributed_manager.cpp +++ b/services/bundlemgr/src/distributed_manager/bundle_distributed_manager.cpp @@ -165,7 +165,7 @@ bool BundleDistributedManager::QueryRpcIdByAbilityToServiceCenter(const TargetAb } std::string bundleName; std::string abilityName; - if (!(bundleDataMgr_->QueryHagAbilityName(bundleName, abilityName))) { + if (!(bundleDataMgr_->QueryAppGalleryAbilityName(bundleName, abilityName))) { APP_LOGE("Fail to query ServiceCenter ability and bundle name"); return false; } diff --git a/services/bundlemgr/src/free_install/bundle_connect_ability_mgr.cpp b/services/bundlemgr/src/free_install/bundle_connect_ability_mgr.cpp index 03ce7346b5..0c086d8df8 100644 --- a/services/bundlemgr/src/free_install/bundle_connect_ability_mgr.cpp +++ b/services/bundlemgr/src/free_install/bundle_connect_ability_mgr.cpp @@ -118,7 +118,7 @@ void BundleConnectAbilityMgr::ProcessPreloadRequestToServiceCenter(int32_t flag, } std::string bundleName; std::string abilityName; - if (!(bundleDataMgr_->QueryHagAbilityName(bundleName, abilityName))) { + if (!(bundleDataMgr_->QueryAppGalleryAbilityName(bundleName, abilityName))) { APP_LOGE("Fail to query ServiceCenter ability and bundle name"); return; } @@ -343,7 +343,7 @@ bool BundleConnectAbilityMgr::SendRequestToServiceCenter(int32_t flag, const Tar } std::string bundleName; std::string abilityName; - if (!(bundleDataMgr_->QueryHagAbilityName(bundleName, abilityName))) { + if (!(bundleDataMgr_->QueryAppGalleryAbilityName(bundleName, abilityName))) { APP_LOGE("Fail to query ServiceCenter ability and bundle name"); return false; } -- Gitee From 74fb8c77e1f2dc2d9fbcf284b1b36977983143bd Mon Sep 17 00:00:00 2001 From: lishiyu Date: Mon, 17 Jul 2023 08:51:31 +0000 Subject: [PATCH 2/4] add inner interface Signed-off-by: lishiyu Change-Id: I50ee537c8c53b2fb09523c7b7b477d87af365424 --- .../inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp | 2 +- .../appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp | 2 +- services/bundlemgr/src/bundle_mgr_host_impl.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp index 63b0d78fc6..2e0662af78 100644 --- a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp +++ b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp @@ -2800,7 +2800,7 @@ ErrCode BundleMgrHost::HandleQueryAppGalleryBundleName(MessageParcel &data, Mess return ERR_APPEXECFWK_PARCEL_ERROR; } } - APP_LOGE("BundleName is %{public}s",bundleName.c_str()); + APP_LOGD("BundleName is %{public}s",bundleName.c_str()); return ERR_OK; } diff --git a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp index 3760af388f..3b64eba9bb 100644 --- a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp +++ b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp @@ -3612,7 +3612,7 @@ bool BundleMgrProxy::GetGroupDir(const std::string &dataGroupId, std::string &di bool BundleMgrProxy::QueryAppGalleryBundleName(std::string &bundleName) { - APP_LOGI("QueryAppGalleryBundleName in bundle proxy start"); + APP_LOGD("QueryAppGalleryBundleName in bundle proxy start"); HITRACE_METER_NAME(HITRACE_TAG_APP, __PRETTY_FUNCTION__); MessageParcel data; if (!data.WriteInterfaceToken(GetDescriptor())) { diff --git a/services/bundlemgr/src/bundle_mgr_host_impl.cpp b/services/bundlemgr/src/bundle_mgr_host_impl.cpp index b2196729ed..e1363e414c 100644 --- a/services/bundlemgr/src/bundle_mgr_host_impl.cpp +++ b/services/bundlemgr/src/bundle_mgr_host_impl.cpp @@ -2815,7 +2815,7 @@ void BundleMgrHostImpl::SetBrokerServiceStatus(bool isServiceExisted) ======= bool BundleMgrHostImpl::QueryAppGalleryBundleName(std::string &bundleName) { - APP_LOGI("QueryAppGalleryBundleName in bundle host impl start"); + APP_LOGD("QueryAppGalleryBundleName in bundle host impl start"); auto dataMgr = GetDataMgrFromService(); if (dataMgr == nullptr) { APP_LOGE("DataMgr is nullptr"); -- Gitee From 18ee819f75d72da9e46517f72cd493c1ea59ed2e Mon Sep 17 00:00:00 2001 From: lishiyu Date: Mon, 17 Jul 2023 08:55:44 +0000 Subject: [PATCH 3/4] add inner interface Signed-off-by: lishiyu Change-Id: I8b59d19d10b43680cc595f08aa9c6df678993d15 --- .../inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp | 2 +- .../appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp index 2e0662af78..dbe231dfb9 100644 --- a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp +++ b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp @@ -2786,7 +2786,7 @@ ErrCode BundleMgrHost::HandleGetPreferenceDirByGroupId(MessageParcel &data, Mess ErrCode BundleMgrHost::HandleQueryAppGalleryBundleName(MessageParcel &data, MessageParcel &reply) { - APP_LOGI("QueryAppGalleryBundleName in bundle mgr hoxt start"); + APP_LOGD("QueryAppGalleryBundleName in bundle mgr hoxt start"); HITRACE_METER_NAME(HITRACE_TAG_APP, __PRETTY_FUNCTION__); std::string bundleName; bool ret = QueryAppGalleryBundleName(bundleName); diff --git a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp index 3b64eba9bb..0d78b9fa88 100644 --- a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp +++ b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp @@ -3631,7 +3631,7 @@ bool BundleMgrProxy::QueryAppGalleryBundleName(std::string &bundleName) } bundleName = reply.ReadString(); if(bundleName.length() > Constants::MAX_BUNDLE_NAME) { - APP_LOGE("fail to QueryAppGalleryBundleName from server"); + APP_LOGE("reply result false"); return false; } APP_LOGD("bundleName is %{public}s", bundleName.c_str()); -- Gitee From 7cbfe451298e50b67f9e9c4d5ff31f8b8de3fc7c Mon Sep 17 00:00:00 2001 From: lishiyu Date: Mon, 17 Jul 2023 09:57:22 +0000 Subject: [PATCH 4/4] add inner interface Signed-off-by: lishiyu Change-Id: I946509ff140aa62343e460e87c59bebaa1040303 --- .../appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp | 4 ++-- .../appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp | 2 +- services/bundlemgr/src/bundle_mgr_host_impl.cpp | 7 +++---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp index dbe231dfb9..bbb576c3ff 100644 --- a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp +++ b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_host.cpp @@ -2796,11 +2796,11 @@ ErrCode BundleMgrHost::HandleQueryAppGalleryBundleName(MessageParcel &data, Mess } if (ret) { if (!reply.WriteString(bundleName)) { - APP_LOGE("write failed"); + APP_LOGE("write failed"); return ERR_APPEXECFWK_PARCEL_ERROR; } } - APP_LOGD("BundleName is %{public}s",bundleName.c_str()); + APP_LOGD("BundleName is %{public}s", bundleName.c_str()); return ERR_OK; } diff --git a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp index 0d78b9fa88..99ddefb62d 100644 --- a/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp +++ b/interfaces/inner_api/appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp @@ -3630,7 +3630,7 @@ bool BundleMgrProxy::QueryAppGalleryBundleName(std::string &bundleName) return false; } bundleName = reply.ReadString(); - if(bundleName.length() > Constants::MAX_BUNDLE_NAME) { + if (bundleName.length() > Constants::MAX_BUNDLE_NAME) { APP_LOGE("reply result false"); return false; } diff --git a/services/bundlemgr/src/bundle_mgr_host_impl.cpp b/services/bundlemgr/src/bundle_mgr_host_impl.cpp index e1363e414c..eb5e8e78a2 100644 --- a/services/bundlemgr/src/bundle_mgr_host_impl.cpp +++ b/services/bundlemgr/src/bundle_mgr_host_impl.cpp @@ -2807,12 +2807,12 @@ bool BundleMgrHostImpl::GetGroupDir(const std::string &dataGroupId, std::string return dataMgr->GetGroupDir(dataGroupId, dir); } -<<<<<<< HEAD void BundleMgrHostImpl::SetBrokerServiceStatus(bool isServiceExisted) { APP_LOGD("broker service status is %{public}d", isServiceExisted); isBrokerServiceExisted_ = isServiceExisted; -======= +} + bool BundleMgrHostImpl::QueryAppGalleryBundleName(std::string &bundleName) { APP_LOGD("QueryAppGalleryBundleName in bundle host impl start"); @@ -2827,9 +2827,8 @@ bool BundleMgrHostImpl::QueryAppGalleryBundleName(std::string &bundleName) APP_LOGE("get bundleName failed"); return false; } - APP_LOGD("bundleName is %{public}s",bundleName.c_str()); + APP_LOGD("bundleName is %{public}s", bundleName.c_str()); return true; ->>>>>>> add inner interface of QueryHagBundleName } } // namespace AppExecFwk } // namespace OHOS -- Gitee