Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70ab82c4 authored by Piotr Pawliczek's avatar Piotr Pawliczek Committed by Android Build Coastguard Worker
Browse files

Do not use BIND_INCLUDE_CAPABILITIES when bind PrintService

This is backport of ag/31156800 to 25Q2 security staging branch. This
fix was developed behind the aconfig flag
com.android.server.print.do_not_include_capabilities and landed in
25Q3.

Bug: 291281543
Test: CQ
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:96d05a62683b53f6ba9c83ae43f40f119cd6115b
Merged-In: I2b9d6b68e7aaa71374a6c5e45796c73a1f3abfa0
Change-Id: I2b9d6b68e7aaa71374a6c5e45796c73a1f3abfa0
parent 6d1697c9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -572,7 +572,6 @@ final class RemotePrintService implements DeathRecipient {

        boolean wasBound = mContext.bindServiceAsUser(mIntent, mServiceConnection,
                Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE
                        | (Flags.doNotIncludeCapabilities() ? 0 : Context.BIND_INCLUDE_CAPABILITIES)
                        | Context.BIND_ALLOW_INSTANT,
                new UserHandle(mUserId));