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

Commit 35c1fb3a 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: Ic29b19412dbb0d7b9b9dd1dbc67a7534a6c1ba28
parent 32880a16
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -3163,8 +3163,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
                }
            }

            final ActivityOptions clientOptions = ActivityOptions.makeBasic();
            clientOptions.setIgnorePendingIntentCreatorForegroundState(true);
            final ActivityOptions clientOptions = ActivityOptions.makeBasic()
                    .setPendingIntentCreatorBackgroundActivityStartMode(
                            ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_DENIED);
            PendingIntent clientIntent = PendingIntent.getActivityAsUser(
                    mContext, 0, Intent.createChooser(
                            new Intent(Intent.ACTION_SET_WALLPAPER),