Bind NotificationService with INCLUDE_CAPABILITIES

Bug: 162273210
Test: presubmit tests
Change-Id: I36af96e141704917e043b7899b8eb595018b00af
This commit is contained in:
Alex Salo
2020-07-30 09:24:56 -07:00
parent 3db2e59e04
commit 8ca31120bc

View File

@@ -437,7 +437,7 @@ public abstract class AbstractRemoteService<S extends AbstractRemoteService<S, I
mBinding = true;
final int flags = Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE
| mBindingFlags;
| Context.BIND_INCLUDE_CAPABILITIES | mBindingFlags;
final boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags,
mHandler, new UserHandle(mUserId));