From 4fca9fc77863315be39d3ff298c28d67a27bcb60 Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Fri, 3 Apr 2020 13:52:40 -0700 Subject: Add BIND_INCLUDE_CAPABILITIES flags to SystemCaptionsManagerService When system process binds to SystemCaptionsManagerService, add BIND_INCLUDE_CAPABILITIES Bug: 153144383 Test: adb shell dumpsys activity -a, observe com.google.android.as process has capability 7. Change-Id: I3284ac60a3032c68b378570ceb20129916445596 --- .../server/systemcaptions/RemoteSystemCaptionsManagerService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'services/systemcaptions/java') diff --git a/services/systemcaptions/java/com/android/server/systemcaptions/RemoteSystemCaptionsManagerService.java b/services/systemcaptions/java/com/android/server/systemcaptions/RemoteSystemCaptionsManagerService.java index 5480b6ced4e1..c225d3feb063 100644 --- a/services/systemcaptions/java/com/android/server/systemcaptions/RemoteSystemCaptionsManagerService.java +++ b/services/systemcaptions/java/com/android/server/systemcaptions/RemoteSystemCaptionsManagerService.java @@ -108,7 +108,8 @@ final class RemoteSystemCaptionsManagerService { } mBinding = true; - int flags = Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE; + int flags = Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE + | Context.BIND_INCLUDE_CAPABILITIES; boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags, mHandler, new UserHandle(mUserId)); if (!willBind) { -- cgit v1.2.3-59-g8ed1b