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

Commit 35161f3d authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Deprecate BIND_ALLOW_FOREGROUND_SERVICE_STARTS_FROM_BACKGROUND

We no longer use it. The "allowed to start FGS" state is now implicitly
propagated across service bindings. We just couldn't remove it for S in time..

Bug: 189235490
Test: prebuilt
Change-Id: Ib53e2cdf45a10454ccf042828ad4219e480ee3ef
parent 2faed608
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2350,7 +2350,7 @@ package android.content {
    field public static final String APP_PREDICTION_SERVICE = "app_prediction";
    field public static final String BACKUP_SERVICE = "backup";
    field public static final String BATTERY_STATS_SERVICE = "batterystats";
    field public static final int BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS = 1048576; // 0x100000
    field @Deprecated public static final int BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS = 1048576; // 0x100000
    field public static final int BIND_ALLOW_FOREGROUND_SERVICE_STARTS_FROM_BACKGROUND = 262144; // 0x40000
    field public static final String CONTENT_SUGGESTIONS_SERVICE = "content_suggestions";
    field public static final String CONTEXTHUB_SERVICE = "contexthub";
+3 −4
Original line number Diff line number Diff line
@@ -416,13 +416,12 @@ public abstract class Context {
    public static final int BIND_SCHEDULE_LIKE_TOP_APP = 0x00080000;

    /**
     * Flag for {@link #bindService}: allow background activity starts from the bound service's
     * process.
     * This flag is only respected if the caller is holding
     * {@link android.Manifest.permission#START_ACTIVITIES_FROM_BACKGROUND}.
     * This flag has never been used.
     * @hide
     * @deprecated This flag has never been used.
     */
    @SystemApi
    @Deprecated
    public static final int BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS = 0x00100000;

    /**