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

Commit 97296a15 authored by Varun Berry's avatar Varun Berry
Browse files

Bind to CarrierService with BIND_INCLUDE_CAPABILITIES flag.

Bug: 150735246
Test: Manual

Merged-In: I790405526bdccbfa8c9c95d3d19a7c662c6bb4a0
Change-Id: I790405526bdccbfa8c9c95d3d19a7c662c6bb4a0
(cherry picked from commit abb2de99)
parent aec5554c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -279,7 +279,9 @@ public class CarrierServiceBindHelper {
            try {
                if (mContext.createContextAsUser(Process.myUserHandle(), 0)
                        .bindService(carrierService,
                                Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE,
                                Context.BIND_AUTO_CREATE
                                | Context.BIND_FOREGROUND_SERVICE
                                | Context.BIND_INCLUDE_CAPABILITIES,
                                (r) -> mHandler.post(r),
                                connection)) {
                    log("service bound");