From 87572c193701626df09dd2f8adfd2671437dcf91 Mon Sep 17 00:00:00 2001 From: songbao1 Date: Tue, 25 Mar 2025 16:17:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E6=8E=A7=E6=8E=A5=E5=8F=A3=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: songbao1 --- frameworks/core/common/include/ans_permission_def.h | 1 + services/ans/src/advanced_notification_service.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frameworks/core/common/include/ans_permission_def.h b/frameworks/core/common/include/ans_permission_def.h index 4df5515c6..8b0af3915 100644 --- a/frameworks/core/common/include/ans_permission_def.h +++ b/frameworks/core/common/include/ans_permission_def.h @@ -24,6 +24,7 @@ namespace Notification { constexpr char OHOS_PERMISSION_NOTIFICATION_CONTROLLER[] = "ohos.permission.NOTIFICATION_CONTROLLER"; constexpr char OHOS_PERMISSION_SET_UNREMOVABLE_NOTIFICATION[] = "ohos.permission.SET_UNREMOVABLE_NOTIFICATION"; constexpr char OHOS_PERMISSION_NOTIFICATION_AGENT_CONTROLLER[] = "ohos.permission.NOTIFICATION_AGENT_CONTROLLER"; +constexpr char OHOS_PERMISSION_MANAGE_EDM_POLICY[] = "ohos.permission.MANAGE_EDM_POLICY"; } // namespace Notification } // namespace OHOS diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index 9c889eefd..21eb29eaf 100644 --- a/services/ans/src/advanced_notification_service.cpp +++ b/services/ans/src/advanced_notification_service.cpp @@ -2500,7 +2500,8 @@ ErrCode AdvancedNotificationService::DisableNotificationFeature(const sptr