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

Commit cd194433 authored by Jesse Evans's avatar Jesse Evans Committed by android-build-merger
Browse files

Merge "Grant ephemeral app access during service bind" into oc-dev

am: b3af9b7e

Change-Id: Id5f5c10b732218d424be259fc1578adbbf9794b7
parents 7c146c0a b3af9b7e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1258,6 +1258,10 @@ public final class ActiveServices {

            mAm.startAssociationLocked(callerApp.uid, callerApp.processName, callerApp.curProcState,
                    s.appInfo.uid, s.name, s.processName);
            // Once the apps have become associated, if one of them is caller is ephemeral
            // the target app should now be able to see the calling app
            mAm.grantEphemeralAccessLocked(callerApp.userId, service,
                    s.appInfo.uid, UserHandle.getAppId(callerApp.uid));

            AppBindRecord b = s.retrieveAppBindingLocked(service, callerApp);
            ConnectionRecord c = new ConnectionRecord(b, activity,