Add BIND_INCLUDE_CAPABILITIES flag to ContentCaptureService

Bug: 153621002
Test: built Android
Change-Id: Ieedcd7ad888ef69e47f6f7c6df63a514eee75781
This commit is contained in:
Sergey Volnov
2020-05-28 16:15:38 +01:00
parent daeb3d4b5e
commit da8e520a89

View File

@@ -54,7 +54,9 @@ final class RemoteContentCaptureService
boolean verbose, int idleUnbindTimeoutMs) {
super(context, serviceInterface, serviceComponentName, userId, perUserService,
context.getMainThreadHandler(),
bindInstantServiceAllowed ? Context.BIND_ALLOW_INSTANT : 0, verbose,
Context.BIND_INCLUDE_CAPABILITIES
| (bindInstantServiceAllowed ? Context.BIND_ALLOW_INSTANT : 0),
verbose,
/* initialCapacity= */ 2);
mPerUserService = perUserService;
mServerCallback = callback.asBinder();