From d4f0ce5779e2456863e2f9ba73a086cab8cfc5ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=AF=85?= Date: Wed, 24 Jul 2024 16:22:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王毅 Change-Id: I93d0bf3e176f6c03995d5568538e1f715c52ec2d --- services/data_collect/sa/data_collect_manager_service.cpp | 2 +- .../src/security_collector_manager_service.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/data_collect/sa/data_collect_manager_service.cpp b/services/data_collect/sa/data_collect_manager_service.cpp index 09b0717..4ca2fee 100755 --- a/services/data_collect/sa/data_collect_manager_service.cpp +++ b/services/data_collect/sa/data_collect_manager_service.cpp @@ -53,7 +53,7 @@ namespace { constexpr int32_t TWO_ARGS = 2; constexpr int32_t TIMEOUT_REPLY = 10000; const std::string REPORT_PERMISSION = "ohos.permission.securityguard.REPORT_SECURITY_INFO"; - const std::string REPORT_PERMISSION_NEW = "ohos.permission.REPORT_SECURITY_INFO"; + const std::string REPORT_PERMISSION_NEW = "ohos.permission.REPORT_SECURITY_EVENT"; const std::string REQUEST_PERMISSION = "ohos.permission.securityguard.REQUEST_SECURITY_EVENT_INFO"; const std::string MANAGE_CONFIG_PERMISSION = "ohos.permission.MANAGE_SECURITY_GUARD_CONFIG"; const std::string QUERY_SECURITY_EVENT_PERMISSION = "ohos.permission.QUERY_SECURITY_EVENT"; diff --git a/services/security_collector/src/security_collector_manager_service.cpp b/services/security_collector/src/security_collector_manager_service.cpp index f0aacbb..834dc22 100755 --- a/services/security_collector/src/security_collector_manager_service.cpp +++ b/services/security_collector/src/security_collector_manager_service.cpp @@ -83,7 +83,7 @@ int32_t SecurityCollectorManagerService::Subscribe(const SecurityCollectorSubscr const sptr &callback) { Event event = subscribeInfo.GetEvent(); - LOGI("in subscribe, subscribinfo: duration:%{public}" PRId64 ", isNotify:%{public}d, eventid:%{public}" PRId64 ", \n" + LOGI("in subscribe, subscribinfo: duration:%{public}" PRId64 ", isNotify:%{public}d, eventid:%{public}" PRId64 ",\n" "version:%{public}s, extra:%{public}s", subscribeInfo.GetDuration(), (int)subscribeInfo.IsNotify(), event.eventId, event.version.c_str(), event.extra.c_str()); int32_t ret = HasPermission(REPORT_PERMISSION);