diff --git a/frameworks/ans/src/notification_local_live_view_subscriber.cpp b/frameworks/ans/src/notification_local_live_view_subscriber.cpp index 2dd13813474c106de7c262dfe0dd6b70f81b2c53..fec8f9c22dba2eef3fb54e44434ee6882b46898b 100644 --- a/frameworks/ans/src/notification_local_live_view_subscriber.cpp +++ b/frameworks/ans/src/notification_local_live_view_subscriber.cpp @@ -40,7 +40,7 @@ NotificationLocalLiveViewSubscriber::SubscriberLocalLiveViewImpl::SubscriberLoca recipient_ = new (std::nothrow) DeathRecipient(*this); }; -void NotificationLocalLiveViewSubscriber::SubscriberLocalLiveViewImpl::OnConnected() +void NotificationLocalLiveViewSubscriber::SubscriberLocalLiveViewImpl::OnConnected() __attribute__((no_sanitize("cfi"))) { HITRACE_METER_NAME(HITRACE_TAG_NOTIFICATION, __PRETTY_FUNCTION__); if (GetAnsManagerProxy()) { diff --git a/services/dialog_ui/enable_notification_dialog/entry/src/main/module.json b/services/dialog_ui/enable_notification_dialog/entry/src/main/module.json index 18153b2f8891d2adaac3faea9e39355ee917cec2..595e1276b758793d64c790357110bfeaba469bef 100644 --- a/services/dialog_ui/enable_notification_dialog/entry/src/main/module.json +++ b/services/dialog_ui/enable_notification_dialog/entry/src/main/module.json @@ -26,14 +26,11 @@ } ], "requestPermissions": [ - { - "name": "ohos.permission.GET_BUNDLE_INFO_PRIVILEGED" - }, { "name": "ohos.permission.START_ABILITIES_FROM_BACKGROUND" }, { - "name": "ohos.permission.NOTIFICATION_CONTROLLER" + "name": "ohos.permission.GET_BUNDLE_INFO" } ] }