From 00f19414af5a5c31ad5136bb8e6eee4e40a487e6 Mon Sep 17 00:00:00 2001 From: Yeyuning Date: Fri, 15 Aug 2025 15:22:22 +0800 Subject: [PATCH] add ces perimssion Signed-off-by: Yeyuning Change-Id: I4235a1fc77f72546dd60f322c85b63ea74558ff6 --- frameworks/native/src/common_event_support.cpp | 3 ++- services/src/common_event_permission_manager.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frameworks/native/src/common_event_support.cpp b/frameworks/native/src/common_event_support.cpp index 7b0b2011..8e7ce85b 100644 --- a/frameworks/native/src/common_event_support.cpp +++ b/frameworks/native/src/common_event_support.cpp @@ -385,7 +385,8 @@ const std::string CommonEventSupport::COMMON_EVENT_USER_FOREGROUND = "usual.even /** * Indicates the action of a common event that a user switch is happening. - * To subscribe to this common event, your application must have the ohos.permission.MANAGE_LOCAL_ACCOUNTS permission. + * To subscribe to this common event, your application must have the ohos.permission.MANAGE_LOCAL_ACCOUNTS or + * ohos.permission.INTERACT_ACROSS_LOCAL_ACCOUNTS permission. */ const std::string CommonEventSupport::COMMON_EVENT_USER_SWITCHED = "usual.event.USER_SWITCHED"; diff --git a/services/src/common_event_permission_manager.cpp b/services/src/common_event_permission_manager.cpp index 5bfb1987..ed848729 100644 --- a/services/src/common_event_permission_manager.cpp +++ b/services/src/common_event_permission_manager.cpp @@ -47,7 +47,8 @@ static const std::unordered_map