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

Commit 8082f442 authored by Achim Thesmann's avatar Achim Thesmann Committed by Android (Google) Code Review
Browse files

Merge changes I095b2ba2,I620b5c55

* changes:
  Explictly Grant Background Activity Launch permission.
  Explictly Grant Background Activity Launch permission.
parents 2a4e5151 32880a16
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1028,8 +1028,9 @@ class AppWidgetServiceImpl extends IAppWidgetService.Stub implements WidgetBacku
            intent.setComponent(provider.getInfoLocked(mContext).configure);
            intent.setFlags(secureFlags);

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

            // All right, create the sender.
            final long identity = Binder.clearCallingIdentity();
+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,