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);