diff --git a/frameworks/security_component/src/sec_comp_base.cpp b/frameworks/security_component/src/sec_comp_base.cpp index 4e3cba1..84b3a78 100644 --- a/frameworks/security_component/src/sec_comp_base.cpp +++ b/frameworks/security_component/src/sec_comp_base.cpp @@ -345,7 +345,6 @@ bool SecCompBase::CompareComponentBasicInfo(SecCompBase *other, bool isRectCheck bool SecCompBase::ParseStyle(const nlohmann::json& json, const std::string& tag) { - SC_LOG_ERROR(LABEL, "1111"); if ((json.find(tag) == json.end()) || !json.at(tag).is_object()) { SC_LOG_ERROR(LABEL, "json: %{public}s tag invalid.", tag.c_str()); return false; @@ -377,7 +376,6 @@ bool SecCompBase::ParseStyle(const nlohmann::json& json, const std::string& tag) SC_LOG_ERROR(LABEL, "bg is invalid."); return false; } - SC_LOG_ERROR(LABEL, "2222"); return true; } } // namespace base diff --git a/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp b/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp index 68f246f..bdd3a3b 100644 --- a/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp +++ b/services/security_component_service/sa/sa_main/sec_comp_info_helper.cpp @@ -248,6 +248,7 @@ int32_t SecCompInfoHelper::GrantTempPermission(AccessToken::AccessTokenID tokenI tokenId, "ohos.permission.APPROXIMATELY_LOCATION"); return SC_SERVICE_ERROR_PERMISSION_OPER_FAIL; } + SC_LOG_INFO(LABEL, "Grant location permission, scid = %{public}d.", componentInfo->nodeId_); return SC_OK; } case PASTE_COMPONENT: @@ -255,14 +256,14 @@ int32_t SecCompInfoHelper::GrantTempPermission(AccessToken::AccessTokenID tokenI if (res != SC_OK) { return SC_SERVICE_ERROR_PERMISSION_OPER_FAIL; } - SC_LOG_DEBUG(LABEL, "grant paste permission"); + SC_LOG_INFO(LABEL, "Grant paste permission, scid = %{public}d.", componentInfo->nodeId_); return SC_OK; case SAVE_COMPONENT: if (IsDlpSandboxCalling(tokenId)) { SC_LOG_INFO(LABEL, "Dlp sandbox app are not allowed to use save component."); return SC_SERVICE_ERROR_PERMISSION_OPER_FAIL; } - SC_LOG_DEBUG(LABEL, "grant save permission"); + SC_LOG_INFO(LABEL, "Grant save permission, scid = %{public}d.", componentInfo->nodeId_); return SecCompPermManager::GetInstance().GrantTempSavePermission(tokenId); default: SC_LOG_ERROR(LABEL, "Parse component type unknown");