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

Commit 914579f0 authored by Lee Shombert's avatar Lee Shombert
Browse files

Fix a shared identity test

Bug: 269728832

Commit ag/21416247 dropped a code fragment.  This CL restores it.

Test: atest
 * CtsAndroidAppTestCases:android.app.cts.ShareIdentityTest
Change-Id: I252990dc430808b5fb875c7f606af1fd13f01a15
parent 643dc76f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -909,6 +909,10 @@ class BroadcastQueueModernImpl extends BroadcastQueue {
        final IApplicationThread thread = app.getOnewayThread();
        if (thread != null) {
            try {
                if (r.shareIdentity) {
                    mService.mPackageManagerInt.grantImplicitAccess(r.userId, r.intent,
                            UserHandle.getAppId(app.uid), r.callingUid, true);
                }
                if (receiver instanceof BroadcastFilter) {
                    notifyScheduleRegisteredReceiver(app, r, (BroadcastFilter) receiver);
                    thread.scheduleRegisteredReceiver(