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

Commit 32880a16 authored by Achim Thesmann's avatar Achim Thesmann
Browse files

Explictly Grant Background Activity Launch permission.

This is to fix tests that fail without granting BAL privileges from the
creator's side.

Test: atest MultiDisplayActivityLaunchTests ModelMultiCallbacksTest PreSimpleSaveActivityTest SimpleSaveActivityTest
Bug: 261780465
Change-Id: I095b2ba29ed56c324c5bc7fc889d0c232087562f
parent 914c0824
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3380,8 +3380,9 @@ class StorageManagerService extends IStorageManager.Stub
                    appInfo.manageSpaceActivityName);
            intent.setFlags(FLAG_ACTIVITY_NEW_TASK);

            final ActivityOptions options = ActivityOptions.makeBasic();
            options.setIgnorePendingIntentCreatorForegroundState(true);
            final ActivityOptions options = ActivityOptions.makeBasic()
                    .setPendingIntentCreatorBackgroundActivityStartMode(
                            ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_DENIED);

            PendingIntent activity = PendingIntent.getActivity(targetAppContext, requestCode,
                    intent,