diff --git a/services/ans/src/advanced_notification_publish_service.cpp b/services/ans/src/advanced_notification_publish_service.cpp index ff72fe261949f6041cfb41577022f0b43b9e1d2a..763d9159313efc15510a615ec5c3e0bb8f085946 100644 --- a/services/ans/src/advanced_notification_publish_service.cpp +++ b/services/ans/src/advanced_notification_publish_service.cpp @@ -59,7 +59,6 @@ constexpr int32_t HOURS_IN_ONE_DAY = 24; const static std::string NOTIFICATION_EVENT_PUSH_AGENT = "notification.event.PUSH_AGENT"; constexpr int32_t RSS_PID = 3051; constexpr int32_t ANS_UID = 5523; -constexpr int32_t BROKER_UID = 5557; constexpr int32_t TYPE_CODE_DOWNLOAD = 8; constexpr const char *FOCUS_MODE_REPEAT_CALLERS_ENABLE = "1"; constexpr const char *CONTACT_DATA = "datashare:///com.ohos.contactsdataability/contacts/contact_data?Proxy=true"; @@ -1071,8 +1070,7 @@ ErrCode AdvancedNotificationService::IsSpecialBundleAllowedNotify( } int32_t callingUid = IPCSkeleton::GetCallingUid(); - if ((callingUid != ANS_UID && callingUid != BROKER_UID) - && !AccessTokenHelper::CheckPermission(OHOS_PERMISSION_NOTIFICATION_CONTROLLER)) { + if (callingUid != ANS_UID && !AccessTokenHelper::CheckPermission(OHOS_PERMISSION_NOTIFICATION_CONTROLLER)) { return ERR_ANS_PERMISSION_DENIED; } @@ -1347,8 +1345,7 @@ ErrCode AdvancedNotificationService::RemoveNotification(const sptr