Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32c138c6 authored by Nan Wu's avatar Nan Wu
Browse files

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

Logs more info (intent, top activity in target task, etc.) of the incidents
when an app is brought to the foreground caused by
a PendingIntent whose creator is allowed to do BAL, but the sender
does not . It still does not change any behavior.

Bug: 296478675
Test: BackgroundActivityLaunchTest#testPI_onlyCreatorAllowsBAL_isBlocked
Change-Id: I0cdc23ca8f75135ee0ab5744260905add6d0bed6
parent ee076eda
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1861,7 +1861,10 @@ class ActivityStarter {
                    + "PendingIntent. However, only the creator of the PendingIntent allows BAL, "
                    + "while the sender does not allow BAL. realCallingPackage: "
                    + realCallingPackage + "; callingPackage: " + mRequest.callingPackage
                    + "; mTargetRootTask:" + mTargetRootTask);
                    + "; mTargetRootTask:" + mTargetRootTask + "; mIntent: " + mIntent
                    + "; mTargetRootTask.getTopNonFinishingActivity: "
                    + mTargetRootTask.getTopNonFinishingActivity()
                    + "; mTargetRootTask.getRootActivity: " + mTargetRootTask.getRootActivity());
        }
    }