From 393568cba6daec57f96283f2125d909fa5b11e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=AC=A3=E5=AE=87?= Date: Sat, 13 Sep 2025 10:21:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=95=B4=E6=94=B92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张欣宇 Change-Id: I321f6bbe8716177e72943ff10b44241617ef4e02 --- .../appexecfwk_core/src/bundlemgr/bundle_mgr_proxy.cpp | 2 +- .../bundlemgr/src/app_control/app_control_manager_host_impl.cpp | 2 +- services/bundlemgr/src/bundle_mgr_host_impl.cpp | 2 +- services/bundlemgr/src/bundle_permission_mgr.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 8ffbd80bc7..73794f861b 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 @@ -847,7 +847,7 @@ bool BundleMgrProxy::GetBundleNameForUid(const int uid, std::string &bundleName) } if (!reply.ReadBool()) { if (uid > Constants::BASE_APP_UID) { - APP_LOGE("reply result false"); + APP_LOGD("reply result false"); } return false; } diff --git a/services/bundlemgr/src/app_control/app_control_manager_host_impl.cpp b/services/bundlemgr/src/app_control/app_control_manager_host_impl.cpp index d800875dc5..a92b0b1811 100644 --- a/services/bundlemgr/src/app_control/app_control_manager_host_impl.cpp +++ b/services/bundlemgr/src/app_control/app_control_manager_host_impl.cpp @@ -295,7 +295,7 @@ ErrCode AppControlManagerHostImpl::GetAppRunningControlRule( const std::string &bundleName, int32_t userId, AppRunningControlRuleResult &controlRuleResult) { if (bundleName.empty()) { - LOG_NOFUNC_W(BMS_TAG_DEFAULT, "GetAppRunningControlRule bundleName is empty"); + LOG_NOFUNC_W(BMS_TAG_DEFAULT, "get running rule -n empty"); return ERR_BUNDLE_MANAGER_BUNDLE_NOT_EXIST; } int32_t uid = OHOS::IPCSkeleton::GetCallingUid(); diff --git a/services/bundlemgr/src/bundle_mgr_host_impl.cpp b/services/bundlemgr/src/bundle_mgr_host_impl.cpp index 2f6a266639..e23778d69b 100644 --- a/services/bundlemgr/src/bundle_mgr_host_impl.cpp +++ b/services/bundlemgr/src/bundle_mgr_host_impl.cpp @@ -636,7 +636,7 @@ bool BundleMgrHostImpl::GetBundleNameForUid(const int uid, std::string &bundleNa int64_t intervalTime = ONE_DAY; if (!BundlePermissionMgr::IsSystemApp() && !BundlePermissionMgr::VerifyCallingBundleSdkVersion(ServiceConstants::API_VERSION_NINE)) { - APP_LOGE("non-system app calling system api"); + APP_LOGE_NOFUNC("non-system permission deny"); return false; } if (!BundlePermissionMgr::VerifyCallingPermissionsForAll({Constants::PERMISSION_GET_BUNDLE_INFO_PRIVILEGED, diff --git a/services/bundlemgr/src/bundle_permission_mgr.cpp b/services/bundlemgr/src/bundle_permission_mgr.cpp index 81d2176b51..1f08c6d5c0 100644 --- a/services/bundlemgr/src/bundle_permission_mgr.cpp +++ b/services/bundlemgr/src/bundle_permission_mgr.cpp @@ -529,7 +529,7 @@ bool BundlePermissionMgr::IsShellTokenType() LOG_D(BMS_TAG_DEFAULT, "caller is shell, success"); return true; } - LOG_I(BMS_TAG_DEFAULT, "caller not shell"); + LOG_NOFUNC_I(BMS_TAG_DEFAULT, "caller not shell"); return false; } -- Gitee