diff options
author | Hui Yu <huiyu@google.com> | 2020-04-03 13:52:40 -0700 |
---|---|---|
committer | Hui Yu <huiyu@google.com> | 2020-04-03 13:52:40 -0700 |
commit | 4fca9fc77863315be39d3ff298c28d67a27bcb60 (patch) | |
tree | 23f5519263e504cd408ddf502e4d59bcefcf531d /services/systemcaptions | |
parent | d6503d5cfd3b65e3ee7925c94f111480d321aec3 (diff) |
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
Diffstat (limited to 'services/systemcaptions')
-rw-r--r-- | services/systemcaptions/java/com/android/server/systemcaptions/RemoteSystemCaptionsManagerService.java | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |