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 8ffbd80bc74d37382e96b8c0ec28c858eab80292..73794f861b4f99b1720852a90b301ac85e92fdc4 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 d800875dc5c47f5c19cdbd8f9244ea9a3891bcbe..a92b0b1811e37a4545bf7ec8ccde5aca84916c61 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 2f6a266639548f3c23ed1cb62435ca8eb0b5d857..e23778d69b85315475bf5db633305ba29618f118 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 81d2176b514077b1e0dd9c3df48c0e70d2f9c6a0..1f08c6d5c0e46f06ad649154932fcf061656ff24 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; }