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

Commit 6cfb7a9d authored by Robin Lee's avatar Robin Lee
Browse files

Promote DISALLOW_RUN_IN_BACKGROUND to SystemAPI

This already existed from some earlier work and has actually worked on
AOSP releases since Marshmallow if set with DevicePolicyManager or adb.
However it's been hidden all this time.

Bug: 71626497
Test: make update-api -j
Change-Id: I97453093ff5c35b7ffcd56e10cc8ab3fc3b843b7
parent 2647c5f2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3271,6 +3271,7 @@ package android.os {
    method public boolean isRestrictedProfile();
    field public static final java.lang.String ACTION_USER_RESTRICTIONS_CHANGED = "android.os.action.USER_RESTRICTIONS_CHANGED";
    field public static final deprecated java.lang.String DISALLOW_OEM_UNLOCK = "no_oem_unlock";
    field public static final java.lang.String DISALLOW_RUN_IN_BACKGROUND = "no_run_in_background";
    field public static final int RESTRICTION_NOT_SET = 0; // 0x0
    field public static final int RESTRICTION_SOURCE_DEVICE_OWNER = 2; // 0x2
    field public static final int RESTRICTION_SOURCE_PROFILE_OWNER = 4; // 0x4
+1 −0
Original line number Diff line number Diff line
@@ -748,6 +748,7 @@ public class UserManager {
     * @see #getUserRestrictions()
     * @hide
     */
    @SystemApi
    public static final String DISALLOW_RUN_IN_BACKGROUND = "no_run_in_background";

    /**