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
This commit is contained in:
Lee Shombert
2023-02-27 15:43:50 -08:00
parent 643dc76f51
commit 914579f076

View File

@@ -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(