summaryrefslogtreecommitdiff
path: root/services/contentcapture
diff options
context:
space:
mode:
authorSergey Volnov <volnov@google.com>2020-05-28 16:15:38 +0100
committerSergey Volnov <volnov@google.com>2020-05-28 16:17:04 +0100
commitda8e520a89984c20661d03d67ef924cf62dc393a (patch)
treec44777d2939bcbfa09219e8b5f96ac31382a52ee /services/contentcapture
parentdaeb3d4b5eff25ef978f71695aa8d037a614d9c8 (diff)
Add BIND_INCLUDE_CAPABILITIES flag to ContentCaptureService
Bug: 153621002 Test: built Android Change-Id: Ieedcd7ad888ef69e47f6f7c6df63a514eee75781
Diffstat (limited to 'services/contentcapture')
-rw-r--r--services/contentcapture/java/com/android/server/contentcapture/RemoteContentCaptureService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/contentcapture/java/com/android/server/contentcapture/RemoteContentCaptureService.java b/services/contentcapture/java/com/android/server/contentcapture/RemoteContentCaptureService.java
index 9a170ac6da10..0b9bf3962562 100644
--- a/services/contentcapture/java/com/android/server/contentcapture/RemoteContentCaptureService.java
+++ b/services/contentcapture/java/com/android/server/contentcapture/RemoteContentCaptureService.java
@@ -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();