diff options
| author | 2023-08-29 18:14:44 +0000 | |
|---|---|---|
| committer | 2023-09-26 00:13:26 +0000 | |
| commit | 51b0892d62ce8efa3739b708740c686a80c08b5f (patch) | |
| tree | 73405a5a4a5c576d432a220d597ab0c831403d96 | |
| parent | 17d492559a13362d58fd86cee5a3bfab70108c71 (diff) | |
Always evaluate callerApp for opted-in sender
The callerApp must be taken in consideration when either the creator
opted in and supplied the caller app or the sender opted in to use the
caller app (for PendingIntent use cases).
Test: atest BackgroundActivityLaunchTest
Bug: 297880036
Change-Id: Ic9582e023749513e136661e924d92006dcb47737
| -rw-r--r-- | services/core/java/com/android/server/wm/BackgroundActivityStartController.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/BackgroundActivityStartController.java b/services/core/java/com/android/server/wm/BackgroundActivityStartController.java index 5399256ac8b0..e97bda218dcd 100644 --- a/services/core/java/com/android/server/wm/BackgroundActivityStartController.java +++ b/services/core/java/com/android/server/wm/BackgroundActivityStartController.java @@ -418,7 +418,7 @@ public class BackgroundActivityStartController { callerAppUid = realCallingUid; } // don't abort if the callerApp or other processes of that uid are allowed in any way - if (callerApp != null && useCallingUidState) { + if (callerApp != null && (useCallingUidState || callerAppBasedOnPiSender)) { // first check the original calling process final @BalCode int balAllowedForCaller = callerApp .areBackgroundActivityStartsAllowed(appSwitchState); |