diff --git a/frameworks/native/src/common_event_support.cpp b/frameworks/native/src/common_event_support.cpp index 7b0b20110898c969e7fb942bf29fb7f226c58e7a..8e7ce85ba23ca2b30f70e7a4061b7e72d290e42b 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 5bfb1987c8f8e58257c82cb3512459d6231f0135..ed848729164c057ddbe51276fd3dd0898761f5aa 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