diff --git a/frameworks/js/napi/app/js_app_manager/js_app_manager.cpp b/frameworks/js/napi/app/js_app_manager/js_app_manager.cpp index 18c80c2fc80d642ddd9221ddd5f3ca3567f5e6ff..e49d958fa1dedc1df2251dbc73965eb1d6c2985f 100644 --- a/frameworks/js/napi/app/js_app_manager/js_app_manager.cpp +++ b/frameworks/js/napi/app/js_app_manager/js_app_manager.cpp @@ -1068,7 +1068,7 @@ private: return; } bool ret = appManager->IsSharedBundleRunning(bundleName, versionCode); - TAG_LOGI(AAFwkTag::APPMGR, "result:%{public}d", ret); + TAG_LOGD(AAFwkTag::APPMGR, "result:%{public}d", ret); task->ResolveWithNoError(env, CreateJsValue(env, ret)); delete task; }; @@ -1194,7 +1194,7 @@ private: return; } int32_t memorySize = abilityManager->GetAppMemorySize(); - TAG_LOGI(AAFwkTag::APPMGR, "memorySize:%{public}d", memorySize); + TAG_LOGD(AAFwkTag::APPMGR, "memorySize:%{public}d", memorySize); task->ResolveWithNoError(env, CreateJsValue(env, memorySize)); delete task; }; diff --git a/frameworks/native/ability/ability_runtime/connection_manager.cpp b/frameworks/native/ability/ability_runtime/connection_manager.cpp index 27a7b227a8602ebc3fab5bc9e83a57a34263e9e0..2d86850e2ed94722b10380c6370428bd00b5c33a 100644 --- a/frameworks/native/ability/ability_runtime/connection_manager.cpp +++ b/frameworks/native/ability/ability_runtime/connection_manager.cpp @@ -197,6 +197,9 @@ ErrCode ConnectionManager::DisconnectAbility(const sptr& connectC std::lock_guard lock(connectionsLock_); bool found = false; auto item = abilityConnections_.begin(); + if (!abilityConnections_.empty()) { + TAG_LOGI(AAFwkTag::CONNECTION, "Connection size:%{public}zu", abilityConnections_.size()); + } while (item != abilityConnections_.end()) { if (!MatchConnection(connectCaller, connectReceiver, accountId, *item) || std::find(item->second.begin(), item->second.end(), connectCallback) == item->second.end()) { @@ -204,8 +207,7 @@ ErrCode ConnectionManager::DisconnectAbility(const sptr& connectC continue; } found = true; - TAG_LOGI(AAFwkTag::CONNECTION, "Connection size:%{public}zu, callback size: %{public}zu", - abilityConnections_.size(), item->second.size()); + TAG_LOGD(AAFwkTag::CONNECTION, "callback size: %{public}zu", item->second.size()); auto iter = item->second.begin(); while (iter != item->second.end()) { if (*iter == connectCallback) { diff --git a/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp b/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp index 7809a6a7e5a02cbf518b95667887edb31f48f415..ceb06f601e3e66cd0a01245d0d0a21be505effe8 100644 --- a/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp +++ b/frameworks/native/ability/native/ability_runtime/js_ui_ability.cpp @@ -1833,7 +1833,7 @@ napi_value JsUIAbility::CallObjectMethod(const char *name, napi_value const *arg } int64_t timeStart = AbilityRuntime::TimeUtil::SystemTimeMillisecond(); napi_status status = napi_call_function(env, obj, methodOnCreate, argc, argv, nullptr); - if (status != napi_ok) { + if (status != napi_ok && status != napi_function_expected) { TAG_LOGE(AAFwkTag::UIABILITY, "napi err: %{public}d", status); } int64_t timeEnd = AbilityRuntime::TimeUtil::SystemTimeMillisecond(); @@ -2181,7 +2181,7 @@ void JsUIAbility::OnAfterFocusedCommon(bool isFocused) void JsUIAbility::SetContinueState(int32_t state) { if (scene_ == nullptr) { - TAG_LOGE(AAFwkTag::UIABILITY, "windowScene is nullptr."); + TAG_LOGW(AAFwkTag::UIABILITY, "windowScene is nullptr."); return; } auto window = scene_->GetMainWindow(); diff --git a/frameworks/native/appkit/ability_runtime/context/js_application_context_utils.cpp b/frameworks/native/appkit/ability_runtime/context/js_application_context_utils.cpp index c507ba81c4693d912be75b05c2ff8458ca759d6f..951b1c8d426d46dd10b34484ff84e027e86a8e8f 100644 --- a/frameworks/native/appkit/ability_runtime/context/js_application_context_utils.cpp +++ b/frameworks/native/appkit/ability_runtime/context/js_application_context_utils.cpp @@ -206,7 +206,6 @@ napi_value JsApplicationContextUtils::OnCreateModuleContext(napi_env env, NapiCa } if (!moduleContext) { - TAG_LOGE(AAFwkTag::APPKIT, "null moduleContext"); AbilityRuntimeErrorUtil::Throw(env, ERR_ABILITY_RUNTIME_EXTERNAL_INVALID_PARAMETER); return CreateJsUndefined(env); } diff --git a/frameworks/simulator/ability_simulator/src/context_impl.cpp b/frameworks/simulator/ability_simulator/src/context_impl.cpp index f06072bc1d985539c3c04ee8248b5df3938fdc0b..006e20a1afa796304a9af1cf933eda0cef2d4280 100644 --- a/frameworks/simulator/ability_simulator/src/context_impl.cpp +++ b/frameworks/simulator/ability_simulator/src/context_impl.cpp @@ -472,7 +472,7 @@ std::shared_ptr ContextImpl::CreateModuleContext( [&moduleName]( const AppExecFwk::HapModuleInfo &hapModuleInfo) { return hapModuleInfo.moduleName == moduleName; }); if (info == bundleInfo.hapModuleInfos.end()) { - TAG_LOGE(AAFwkTag::ABILITY_SIM, "moduleName error"); + TAG_LOGE(AAFwkTag::ABILITY_SIM, "moduleName %{public}s error", moduleName.c_str()); return nullptr; } appContext->InitHapModuleInfo(*info); diff --git a/interfaces/inner_api/app_manager/src/appmgr/app_mgr_client.cpp b/interfaces/inner_api/app_manager/src/appmgr/app_mgr_client.cpp index adc3efbdbf4d421aca781537911bafc5d20a9fe2..f8d1769b8bc07dd66529fb1a4c106504e894a4cf 100644 --- a/interfaces/inner_api/app_manager/src/appmgr/app_mgr_client.cpp +++ b/interfaces/inner_api/app_manager/src/appmgr/app_mgr_client.cpp @@ -1437,7 +1437,7 @@ int32_t AppMgrClient::PreloadApplication(const std::string &bundleName, int32_t int32_t AppMgrClient::SetSupportedProcessCacheSelf(bool isSupport) { - TAG_LOGI(AAFwkTag::APPMGR, "Called"); + TAG_LOGD(AAFwkTag::APPMGR, "Called"); sptr service = iface_cast(mgrHolder_->GetRemoteObject()); if (service == nullptr) { TAG_LOGE(AAFwkTag::APPMGR, "Service is nullptr."); @@ -1448,7 +1448,7 @@ int32_t AppMgrClient::SetSupportedProcessCacheSelf(bool isSupport) int32_t AppMgrClient::SetSupportedProcessCache(int32_t pid, bool isSupport) { - TAG_LOGI(AAFwkTag::APPMGR, "Called"); + TAG_LOGD(AAFwkTag::APPMGR, "Called"); sptr service = iface_cast(mgrHolder_->GetRemoteObject()); if (service == nullptr) { TAG_LOGE(AAFwkTag::APPMGR, "Service is nullptr."); diff --git a/interfaces/inner_api/app_manager/src/appmgr/app_scheduler_host.cpp b/interfaces/inner_api/app_manager/src/appmgr/app_scheduler_host.cpp index 78d986e17ca11671082ee055a60f04fdde24ec80..fbff8d8f992a7f7e0521fb56a4616d992c125251 100644 --- a/interfaces/inner_api/app_manager/src/appmgr/app_scheduler_host.cpp +++ b/interfaces/inner_api/app_manager/src/appmgr/app_scheduler_host.cpp @@ -32,7 +32,7 @@ void AppSchedulerHost::InitMemberFuncMap() {} AppSchedulerHost::~AppSchedulerHost() { - TAG_LOGI(AAFwkTag::APPMGR, "AppSchedulerHost destruction"); + TAG_LOGD(AAFwkTag::APPMGR, "AppSchedulerHost destruction"); } int AppSchedulerHost::OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) diff --git a/services/abilitymgr/src/ability_manager_client.cpp b/services/abilitymgr/src/ability_manager_client.cpp index e4149b294d189bc161089b437af22d1e793e1e44..bc5b52dd421fe83cdada35147a74a6580842c171 100644 --- a/services/abilitymgr/src/ability_manager_client.cpp +++ b/services/abilitymgr/src/ability_manager_client.cpp @@ -1600,7 +1600,7 @@ AppExecFwk::ElementName AbilityManagerClient::GetTopAbility(bool isNeedLocalDevi TAG_LOGE(AAFwkTag::ABILITYMGR, "get sceneSessionManager failed"); return elementName; } - TAG_LOGI(AAFwkTag::ABILITYMGR, "call GetTopAbility"); + TAG_LOGI(AAFwkTag::ABILITYMGR, "GetTopAbility"); (void)sceneSessionManager->GetFocusSessionElement(elementName); return elementName; } @@ -1648,7 +1648,7 @@ ErrCode AbilityManagerClient::AddFreeInstallObserver(const sptr c int32_t AbilityManagerClient::IsValidMissionIds( const std::vector &missionIds, std::vector &results) { - TAG_LOGI(AAFwkTag::ABILITYMGR, "call"); + TAG_LOGD(AAFwkTag::ABILITYMGR, "call"); #ifdef SUPPORT_SCREEN if (Rosen::SceneBoardJudgement::IsSceneBoardEnabled()) { auto sceneSessionManager = SessionManagerLite::GetInstance().GetSceneSessionManagerLiteProxy(); diff --git a/services/abilitymgr/src/ability_record.cpp b/services/abilitymgr/src/ability_record.cpp index bd5836d9ac56dad8a2ae65ffa4221d632b0c7515..1216ebfd733cb3dfcd87443de376b2199ffc5950 100644 --- a/services/abilitymgr/src/ability_record.cpp +++ b/services/abilitymgr/src/ability_record.cpp @@ -3658,7 +3658,7 @@ bool AbilityRecord::IsAbilityWindowReady() void AbilityRecord::SetAbilityWindowState(const sptr &sessionInfo, WindowCommand winCmd, bool isFinished) { if (sessionInfo == nullptr) { - TAG_LOGE(AAFwkTag::ABILITYMGR, "null sessionInfo"); + TAG_LOGW(AAFwkTag::ABILITYMGR, "null sessionInfo"); return; } if (isFinished) { diff --git a/services/abilitymgr/src/ability_start_with_wait_observer_manager/ability_start_with_wait_observer_manager.cpp b/services/abilitymgr/src/ability_start_with_wait_observer_manager/ability_start_with_wait_observer_manager.cpp index 2f821984a20edc1ca8cfc9515181440bbe89f22c..a99527a3024bc0bfec85e373b02f3c39850c8790 100644 --- a/services/abilitymgr/src/ability_start_with_wait_observer_manager/ability_start_with_wait_observer_manager.cpp +++ b/services/abilitymgr/src/ability_start_with_wait_observer_manager/ability_start_with_wait_observer_manager.cpp @@ -136,10 +136,10 @@ void AbilityStartWithWaitObserverManager::NotifyAATerminateWait( } auto observerId = abilityRecord->GetWant().GetIntParam(Want::START_ABILITY_WITH_WAIT_OBSERVER_ID_KEY, -1); if (observerId == -1) { - TAG_LOGE(AAFwkTag::ABILITYMGR, "invaid observerId"); + TAG_LOGW(AAFwkTag::ABILITYMGR, "invaid observerId"); return; } - TAG_LOGE(AAFwkTag::ABILITYMGR, "observerId:%{public}d", observerId); + TAG_LOGD(AAFwkTag::ABILITYMGR, "observerId:%{public}d", observerId); abilityRecord->RemoveSpecifiedWantParam(Want::START_ABILITY_WITH_WAIT_OBSERVER_ID_KEY); sptr proxy = nullptr; AbilityStartWithWaitObserverData data; diff --git a/services/appmgr/src/app_mgr_service.cpp b/services/appmgr/src/app_mgr_service.cpp index 1b907c9f6016724cefdee598cf5bbae9421285d7..e63d18761b719ecf446787a7896be45f5c31c04d 100644 --- a/services/appmgr/src/app_mgr_service.cpp +++ b/services/appmgr/src/app_mgr_service.cpp @@ -1668,7 +1668,7 @@ int32_t AppMgrService::NotifyMemorySizeStateChanged(int32_t memorySizeState) int32_t AppMgrService::SetSupportedProcessCacheSelf(bool isSupport) { - TAG_LOGI(AAFwkTag::APPMGR, "call"); + TAG_LOGD(AAFwkTag::APPMGR, "call"); if (!IsReady()) { TAG_LOGE(AAFwkTag::APPMGR, "not ready"); return ERR_INVALID_OPERATION; @@ -1678,7 +1678,7 @@ int32_t AppMgrService::SetSupportedProcessCacheSelf(bool isSupport) int32_t AppMgrService::SetSupportedProcessCache(int32_t pid, bool isSupport) { - TAG_LOGI(AAFwkTag::APPMGR, "Called"); + TAG_LOGD(AAFwkTag::APPMGR, "Called"); if (!IsReady()) { TAG_LOGE(AAFwkTag::APPMGR, "Not ready."); return ERR_INVALID_OPERATION; diff --git a/services/appmgr/src/app_mgr_service_inner.cpp b/services/appmgr/src/app_mgr_service_inner.cpp index 66dd689fce1e3226ccbe2392337726b7c7786a5a..72bf65490b211cffe5735b7fd3d47383473a9080 100644 --- a/services/appmgr/src/app_mgr_service_inner.cpp +++ b/services/appmgr/src/app_mgr_service_inner.cpp @@ -38,7 +38,7 @@ #include "app_state_observer_manager.h" #include "app_utils.h" #include "appfreeze_manager.h" -#include "application_state_observer_stub.h" +#include "application_state_observer_stub..h" #include "appspawn_util.h" #include "bundle_constants.h" #include "bundle_mgr_helper.h" @@ -1413,7 +1413,7 @@ bool AppMgrServiceInner::GetBundleAndHapInfo(const AbilityInfo &abilityInfo, void AppMgrServiceInner::AttachApplication(const pid_t pid, const sptr &appScheduler) { - TAG_LOGI(AAFwkTag::APPMGR, "%{public}s called", __func__); + TAG_LOGD(AAFwkTag::APPMGR, "%{public}s called", __func__); if (pid <= 0) { TAG_LOGE(AAFwkTag::APPMGR, "invalid pid:%{public}d", pid); return; @@ -1688,7 +1688,7 @@ void AppMgrServiceInner::ApplicationForegrounded(const int32_t recordId) if (callerRecord != nullptr) { eventInfo.callerBundleName = callerRecord->GetBundleName(); } else { - TAG_LOGE(AAFwkTag::APPMGR, "callerRecord null"); + TAG_LOGD(AAFwkTag::APPMGR, "callerRecord null"); } AAFwk::EventReport::SendAppForegroundEvent(AAFwk::EventName::APP_FOREGROUND, eventInfo); } @@ -8163,7 +8163,7 @@ bool AppMgrServiceInner::IsAttachDebug(const std::string &bundleName) TAG_LOGD(AAFwkTag::APPMGR, "called"); auto isSaCall = AAFwk::PermissionVerification::GetInstance()->IsSACall(); if (!isSaCall) { - TAG_LOGE(AAFwkTag::APPMGR, "caller token not SA"); + TAG_LOGW(AAFwkTag::APPMGR, "caller token not SA"); return false; } if (appRunningManager_ == nullptr || bundleName.empty()) { @@ -9424,7 +9424,7 @@ bool AppMgrServiceInner::GetKeepAliveState(const std::shared_ptr &sharedBundles) { - TAG_LOGI(AAFwkTag::APPMGR, "QueryRunningSharedBundles call, pid:%{public}d", pid); + TAG_LOGD(AAFwkTag::APPMGR, "QueryRunningSharedBundles call, pid:%{public}d", pid); HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__); auto appRecord = GetAppRunningRecordByPid(pid); if (!appRecord) { diff --git a/services/appmgr/src/app_running_manager.cpp b/services/appmgr/src/app_running_manager.cpp index e78da739dca1cafbccf3586acfe1a8b9d6cd7c30..cea3714032e8f64a98edba24d1f94ab446cba0cd 100644 --- a/services/appmgr/src/app_running_manager.cpp +++ b/services/appmgr/src/app_running_manager.cpp @@ -704,10 +704,10 @@ std::shared_ptr AppRunningManager::OnRemoteDied(const wptrRemoveAppDeathRecipient(); appRecord->SetApplicationClient(nullptr); - TAG_LOGI(AAFwkTag::APPMGR, "pname: %{public}s", appRecord->GetProcessName().c_str()); auto priorityObject = appRecord->GetPriorityObject(); if (priorityObject != nullptr) { - TAG_LOGI(AAFwkTag::APPMGR, "pid: %{public}d", priorityObject->GetPid()); + TAG_LOGI(AAFwkTag::APPMGR, "pname: %{public}s, pid: %{public}d", appRecord->GetProcessName().c_str(), + priorityObject->GetPid()); if (appMgrServiceInner != nullptr) { appMgrServiceInner->KillProcessByPid(priorityObject->GetPid(), "OnRemoteDied"); } @@ -1026,7 +1026,7 @@ int32_t AppRunningManager::AssignRunningProcessInfoByAppRecord( { HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__); if (!appRecord) { - TAG_LOGE(AAFwkTag::APPMGR, "null"); + TAG_LOGW(AAFwkTag::APPMGR, "null"); return ERR_INVALID_OPERATION; } @@ -1796,7 +1796,7 @@ void AppRunningManager::HandleChildRelation( std::shared_ptr AppRunningManager::OnChildProcessRemoteDied(const wptr &remote) { - TAG_LOGE(AAFwkTag::APPMGR, "On child process remote died"); + TAG_LOGD(AAFwkTag::APPMGR, "On child process remote died"); if (remote == nullptr) { TAG_LOGE(AAFwkTag::APPMGR, "null remote"); return nullptr; diff --git a/services/appmgr/src/app_running_record.cpp b/services/appmgr/src/app_running_record.cpp index 58fe5677a6f5f251ed7f080bb0a07d66fd97f393..0fd51e2c3a60e54ef4662c15812383978c3ec666 100644 --- a/services/appmgr/src/app_running_record.cpp +++ b/services/appmgr/src/app_running_record.cpp @@ -1162,7 +1162,7 @@ void AppRunningRecord::SetAppMgrServiceInner(const std::weak_ptr(param)); eventHandler_->SendEvent(AAFwk::EventWrap(msg, param), timeOut, false); AppEventUtil::GetInstance().AddEvent(shared_from_this(), msg, param); } @@ -2467,14 +2466,14 @@ void AppRunningRecord::SetWatchdogBackgroundStatusRunning(bool status) bool AppRunningRecord::SetSupportedProcessCache(bool isSupport) { - TAG_LOGI(AAFwkTag::APPMGR, "call"); + TAG_LOGD(AAFwkTag::APPMGR, "call"); procCacheSupportState_ = isSupport ? SupportProcessCacheState::SUPPORT : SupportProcessCacheState::NOT_SUPPORT; return true; } bool AppRunningRecord::SetEnableProcessCache(bool enable) { - TAG_LOGI(AAFwkTag::APPMGR, "call"); + TAG_LOGD(AAFwkTag::APPMGR, "call"); enableProcessCache_ = enable; return true; } diff --git a/services/appmgr/src/app_spawn_client.cpp b/services/appmgr/src/app_spawn_client.cpp index f1f1e51387c6d5f306d072339d57bc0358fbf08f..7a6bcff3edebdbc66d7be5acbf4a2542bfad776d 100644 --- a/services/appmgr/src/app_spawn_client.cpp +++ b/services/appmgr/src/app_spawn_client.cpp @@ -664,7 +664,7 @@ int32_t AppSpawnClient::SendAppSpawnUninstallDebugHapMsg(int32_t userId) int32_t AppSpawnClient::GetRenderProcessTerminationStatus(const AppSpawnStartMsg &startMsg, int &status) { - TAG_LOGI(AAFwkTag::APPMGR, "call"); + TAG_LOGD(AAFwkTag::APPMGR, "call"); int32_t ret = 0; AppSpawnReqMsgHandle reqHandle = nullptr; @@ -684,7 +684,7 @@ int32_t AppSpawnClient::GetRenderProcessTerminationStatus(const AppSpawnStartMsg return ret; } - TAG_LOGI(AAFwkTag::APPMGR, "AppspawnSendMsg"); + TAG_LOGD(AAFwkTag::APPMGR, "AppspawnSendMsg"); AppSpawnResult result = {0}; ret = AppSpawnClientSendMsg(handle_, reqHandle, &result); status = result.result; diff --git a/services/appmgr/src/app_state_observer_manager.cpp b/services/appmgr/src/app_state_observer_manager.cpp index 0349ec10028e1090b6d1e85e970d866bad722a7d..44bca47cad75190a30a297b29ab23f2511b96473 100644 --- a/services/appmgr/src/app_state_observer_manager.cpp +++ b/services/appmgr/src/app_state_observer_manager.cpp @@ -70,7 +70,7 @@ int32_t AppStateObserverManager::RegisterApplicationStateObserver( return ERR_INVALID_VALUE; } if (ObserverExist(observer)) { - TAG_LOGE(AAFwkTag::APPMGR, "observer exist"); + TAG_LOGW(AAFwkTag::APPMGR, "observer exist"); return ERR_INVALID_VALUE; } std::lock_guard lockRegister(observerLock_); @@ -123,7 +123,7 @@ int32_t AppStateObserverManager::RegisterAppForegroundStateObserver(const sptr lock(webMutexLock_); - TAG_LOGE(AAFwkTag::APPMGR, "call"); + TAG_LOGD(AAFwkTag::APPMGR, "call"); exitResidentBundlesDependedOnWeb_.emplace_back(bundleName, uid); } @@ -116,7 +116,7 @@ void ExitResidentProcessManager::HandleExitResidentBundleDependedOnWeb( std::vector &bundleNames) { std::lock_guard lock(webMutexLock_); - TAG_LOGE(AAFwkTag::APPMGR, "call"); + TAG_LOGD(AAFwkTag::APPMGR, "call"); bundleNames = std::move(exitResidentBundlesDependedOnWeb_); } @@ -175,7 +175,7 @@ void ExitResidentProcessManager::QueryExitBundleInfos(const std::vector bundleNames; { std::lock_guard lock(webMutexLock_); diff --git a/services/common/src/permission_verification.cpp b/services/common/src/permission_verification.cpp index ef809e79ca6712d141be9f3db9294cc36af98d77..53b08a3e46b417d7a80cb47230f0ab2ef33a4b75 100644 --- a/services/common/src/permission_verification.cpp +++ b/services/common/src/permission_verification.cpp @@ -153,7 +153,6 @@ bool PermissionVerification::VerifyRunningInfoPerm() const TAG_LOGD(AAFwkTag::DEFAULT, "Permission granted"); return true; } - TAG_LOGE(AAFwkTag::DEFAULT, "Permission denied"); return false; } @@ -163,7 +162,6 @@ bool PermissionVerification::VerifyCustomSandbox(uint32_t accessTokenId) const TAG_LOGD(AAFwkTag::DEFAULT, "Permission granted"); return true; } - TAG_LOGE(AAFwkTag::DEFAULT, "Permission denied"); return false; } @@ -173,7 +171,6 @@ bool PermissionVerification::VerifyControllerPerm() const TAG_LOGD(AAFwkTag::DEFAULT, "Permission granted"); return true; } - TAG_LOGE(AAFwkTag::DEFAULT, "Permission denied"); return false; } @@ -187,7 +184,6 @@ bool PermissionVerification::VerifyDlpPermission(Want &want) const if (VerifyCallingPermission(PermissionConstants::PERMISSION_ACCESS_DLP)) { return true; } - TAG_LOGE(AAFwkTag::DEFAULT, "Permission denied"); return false; } @@ -196,7 +192,6 @@ int PermissionVerification::VerifyAccountPermission() const if (VerifyCallingPermission(PermissionConstants::PERMISSION_INTERACT_ACROSS_LOCAL_ACCOUNTS)) { return ERR_OK; } - TAG_LOGE(AAFwkTag::DEFAULT, "Permission denied"); return CHECK_PERMISSION_FAILED; } @@ -207,7 +202,6 @@ bool PermissionVerification::VerifyMissionPermission() const TAG_LOGD(AAFwkTag::DEFAULT, "Permission granted"); return true; } - TAG_LOGE(AAFwkTag::DEFAULT, "Permission denied"); return false; } @@ -217,7 +211,6 @@ int PermissionVerification::VerifyAppStateObserverPermission() const TAG_LOGD(AAFwkTag::DEFAULT, "Permission granted"); return ERR_OK; } - TAG_LOGE(AAFwkTag::DEFAULT, "Permission denied"); return ERR_PERMISSION_DENIED; } @@ -228,8 +221,6 @@ int32_t PermissionVerification::VerifyUpdateConfigurationPerm() const "Permission %{public}s granted", PermissionConstants::PERMISSION_UPDATE_CONFIGURATION); return ERR_OK; } - TAG_LOGE(AAFwkTag::DEFAULT, - "Permission %{public}s denied", PermissionConstants::PERMISSION_UPDATE_CONFIGURATION); return ERR_PERMISSION_DENIED; } @@ -240,8 +231,6 @@ int32_t PermissionVerification::VerifyUpdateAPPConfigurationPerm() const "Permission %{public}s granted", PermissionConstants::PERMISSION_UPDATE_APP_CONFIGURATION); return ERR_OK; } - TAG_LOGE(AAFwkTag::DEFAULT, - "Permission %{public}s denied", PermissionConstants::PERMISSION_UPDATE_APP_CONFIGURATION); return ERR_PERMISSION_DENIED; } @@ -252,8 +241,6 @@ bool PermissionVerification::VerifyInstallBundlePermission() const "Permission %{public}s granted", PermissionConstants::PERMISSION_INSTALL_BUNDLE); return true; } - - TAG_LOGE(AAFwkTag::DEFAULT, "Permission %{public}s denied", PermissionConstants::PERMISSION_INSTALL_BUNDLE); return false; } @@ -264,9 +251,6 @@ bool PermissionVerification::VerifyGetBundleInfoPrivilegedPermission() const "Permission %{public}s granted", PermissionConstants::PERMISSION_GET_BUNDLE_INFO_PRIVILEGED); return true; } - - TAG_LOGE(AAFwkTag::DEFAULT, - "Permission %{public}s denied", PermissionConstants::PERMISSION_GET_BUNDLE_INFO_PRIVILEGED); return false; }