Explicitly allow BAL from notifications and status bar.

This does not change the current behavior, but makes sure future changes
to the BAL logic don't prevent starting PendingIntents of
non-privileged apps when the user explicitly expects this to happen.

Change-Id: I8dd530e9d81ddac554f8990e7a3c2dbd188d2704
Test: atest OpenAppFromNotificationWarm
Bug: b/244637991
This commit is contained in:
Achim Thesmann
2022-11-11 18:24:20 -08:00
parent ad96102725
commit a20184bc25

View File

@@ -122,6 +122,7 @@ public interface CentralSurfaces extends Dumpable, ActivityStarter, LifecycleOwn
ActivityOptions options = getDefaultActivityOptions(animationAdapter);
options.setLaunchDisplayId(displayId);
options.setCallerDisplayId(displayId);
options.setPendingIntentBackgroundActivityLaunchAllowed(true);
return options.toBundle();
}
@@ -145,6 +146,7 @@ public interface CentralSurfaces extends Dumpable, ActivityStarter, LifecycleOwn
: ActivityOptions.SourceInfo.TYPE_NOTIFICATION, eventTime);
options.setLaunchDisplayId(displayId);
options.setCallerDisplayId(displayId);
options.setPendingIntentBackgroundActivityLaunchAllowed(true);
return options.toBundle();
}