使能和安装扩展服务监听接口限制后台唤醒

Signed-off-by: fanzexuan <fanzexuan@huawei.com>
This commit is contained in:
fanzexuan 2024-08-15 19:14:31 +08:00
parent 33d0004c8c
commit cf12f678fb

View File

@ -42,7 +42,7 @@ void AccessibilityEnableAbilityListsObserverProxy::OnAccessibilityEnableAbilityL
MessageParcel data;
MessageParcel reply;
MessageOption option(MessageOption::TF_ASYNC);
MessageOption option(MessageOption::TF_ASYNC | MessageOption::TF_ASYNC_WAKEUP_LATER);
if (!WriteInterfaceToken(data)) {
HILOG_ERROR("write interface token failed");
@ -69,7 +69,7 @@ void AccessibilityEnableAbilityListsObserverProxy::OnAccessibilityInstallAbility
MessageParcel data;
MessageParcel reply;
MessageOption option(MessageOption::TF_ASYNC);
MessageOption option(MessageOption::TF_ASYNC | MessageOption::TF_ASYNC_WAKEUP_LATER);
if (!WriteInterfaceToken(data)) {
HILOG_ERROR("write interface token failed");