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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user