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

Commit 00143ee7 authored by Achim Thesmann's avatar Achim Thesmann
Browse files

Make DEFAULT_RESCIND_BAL_PRIVILEGES_FROM_PENDING_INTENT_CREATOR overridable

Test: atest BackgroundActivityLaunchTests
Flag: EXEMPT bugfix
Bug: 296479164
Change-Id: I5e1ae9c021617e81602b2c6a4b9dcd3dc64614e5
parent eea8460f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -66,6 +66,7 @@ import android.app.BackgroundStartPrivileges;
import android.app.compat.CompatChanges;
import android.compat.annotation.ChangeId;
import android.compat.annotation.EnabledAfter;
import android.compat.annotation.Overridable;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
@@ -129,6 +130,7 @@ public class BackgroundActivityStartController {
    /** If enabled the creator will not allow BAL on its behalf by default. */
    @ChangeId
    @EnabledAfter(targetSdkVersion = UPSIDE_DOWN_CAKE)
    @Overridable
    private static final long DEFAULT_RESCIND_BAL_PRIVILEGES_FROM_PENDING_INTENT_CREATOR =
            296478951;
    public static final ActivityOptions ACTIVITY_OPTIONS_SYSTEM_DEFINED =