mirror of
https://gitee.com/openharmony/notification_common_event_service
synced 2024-11-26 17:50:42 +00:00
feat: Remote sleep event's permission
Signed-off-by: wangyantian <wangyantian@huawei.com>
This commit is contained in:
parent
761b205778
commit
130e51ac19
@ -437,8 +437,8 @@ CommonEvent.unsubscriber(CommonEventSubscriber, UnsubscriberCallBack);
|
||||
| COMMON_EVENT_POWER_DISCONNECTED | usual.event.POWER_DISCONNECTED | 无 |
|
||||
| COMMON_EVENT_SCREEN_OFF | usual.event.SCREEN_OFF | 无 |
|
||||
| COMMON_EVENT_SCREEN_ON | usual.event.SCREEN_ON | 无 |
|
||||
| COMMON_EVENT_ENTER_FORCE_SLEEP | usual.event.ENTER_FORCE_SLEEP | ohos.permission.POWER_MANAGER |
|
||||
| COMMON_EVENT_EXIT_FORCE_SLEEP | usual.event.EXIT_FORCE_SLEEP | ohos.permission.POWER_MANAGER |
|
||||
| COMMON_EVENT_ENTER_FORCE_SLEEP | usual.event.ENTER_FORCE_SLEEP | 无 |
|
||||
| COMMON_EVENT_EXIT_FORCE_SLEEP | usual.event.EXIT_FORCE_SLEEP | 无 |
|
||||
| COMMON_EVENT_USER_PRESENT | usual.event.USER_PRESENT | 无 |
|
||||
| COMMON_EVENT_TIME_TICK | usual.event.TIME_TICK | 无 |
|
||||
| COMMON_EVENT_TIME_CHANGED | usual.event.TIME_CHANGED | 无 |
|
||||
|
@ -151,12 +151,6 @@ static const std::unordered_map<std::string, std::pair<PermissionState, std::vec
|
||||
{CommonEventSupport::COMMON_EVENT_BUNDLE_RESOURCES_CHANGED,
|
||||
{PermissionState::DEFAULT, {"ohos.permission.GET_BUNDLE_RESOURCES"}}
|
||||
},
|
||||
{CommonEventSupport::COMMON_EVENT_ENTER_FORCE_SLEEP,
|
||||
{PermissionState::DEFAULT, {"ohos.permission.POWER_MANAGER"}}
|
||||
},
|
||||
{CommonEventSupport::COMMON_EVENT_EXIT_FORCE_SLEEP,
|
||||
{PermissionState::DEFAULT, {"ohos.permission.POWER_MANAGER"}}
|
||||
}
|
||||
};
|
||||
|
||||
static const std::unordered_set<std::string> SYSTEM_API_COMMON_EVENTS {
|
||||
|
Loading…
Reference in New Issue
Block a user