Don’t bring App to FG if only creator is allowed to do BAL(2/2)

Prevent bringing an app to the foreground by a PendingIntent simply
because its creator has the BAL privilege but its sender does not.
Also logs the incidents when the app would have been brought to
the foreground without this change.

Bug: 296478675
Test: BackgroundActivityLaunchTest#testPI_onlyCreatorAllowsBAL_isBlocked
Change-Id: I72a6c22a5fb27aeac52a4e5d46c6a16e28ee6757
1 file changed