From 1150c1a1888642498946705a7c4a357d133bfac6 Mon Sep 17 00:00:00 2001 From: zhaowenli Date: Mon, 21 Oct 2024 11:42:09 +0000 Subject: [PATCH] =?UTF-8?q?cherry=20pick=20a4b39ed=20from=20https://gitee.?= =?UTF-8?q?com/wenxin-liu=5Fadmin/security=5Fsecurity=5Fcomponent=5Fmanage?= =?UTF-8?q?r/pulls/210=20=E5=91=8A=E8=AD=A6=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaowenli Change-Id: Ieec5459445ffabbf20e96224b6e1a8b315c1d262 --- .../sa/sa_main/sec_comp_manager.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/security_component_service/sa/sa_main/sec_comp_manager.cpp b/services/security_component_service/sa/sa_main/sec_comp_manager.cpp index 91545d9..5de862a 100644 --- a/services/security_component_service/sa/sa_main/sec_comp_manager.cpp +++ b/services/security_component_service/sa/sa_main/sec_comp_manager.cpp @@ -462,10 +462,6 @@ int32_t SecCompManager::CheckClickSecurityComponentInfo(std::shared_ptrrect_, reportComponentInfo->windowRect_))) { SC_LOG_ERROR(LABEL, "compare component info failed."); - int32_t uid = IPCSkeleton::GetCallingUid(); - OHOS::AppExecFwk::BundleMgrClient bmsClient; - std::string bundleName = ""; - bmsClient.GetNameForUid(uid, bundleName); HiSysEventWrite(HiviewDFX::HiSysEvent::Domain::SEC_COMPONENT, "COMPONENT_INFO_CHECK_FAILED", HiviewDFX::HiSysEvent::EventType::SECURITY, "CALLER_UID", uid, "CALLER_BUNDLE_NAME", bundleName, "CALLER_PID", IPCSkeleton::GetCallingPid(), "SC_ID", scId, "CALL_SCENE", "CLICK", "SC_TYPE", -- Gitee