Loading core/java/android/content/Context.java +1 −2 Original line number Diff line number Diff line Loading @@ -760,8 +760,7 @@ public abstract class Context { */ public static final long BIND_REDUCTION_FLAGS = Context.BIND_ALLOW_OOM_MANAGEMENT | Context.BIND_WAIVE_PRIORITY | Context.BIND_NOT_PERCEPTIBLE | Context.BIND_NOT_VISIBLE | Context.BIND_ALLOW_FREEZE; | Context.BIND_NOT_PERCEPTIBLE | Context.BIND_NOT_VISIBLE; /** @hide */ @IntDef(flag = true, prefix = { "RECEIVER_VISIBLE" }, value = { Loading services/core/java/com/android/server/am/ActiveServices.java +5 −0 Original line number Diff line number Diff line Loading @@ -4162,6 +4162,11 @@ public final class ActiveServices { "BIND_ALLOW_FOREGROUND_SERVICE_STARTS_FROM_BACKGROUND"); } if ((flags & Context.BIND_ALLOW_FREEZE) != 0 && !isCallerSystem) { throw new SecurityException("Non-system caller (pid=" + callingPid + ") set BIND_ALLOW_FREEZE when binding service " + service); } final boolean callerFg = callerApp.mState.getSetSchedGroup() != ProcessList.SCHED_GROUP_BACKGROUND; final boolean isBindExternal = Loading Loading
core/java/android/content/Context.java +1 −2 Original line number Diff line number Diff line Loading @@ -760,8 +760,7 @@ public abstract class Context { */ public static final long BIND_REDUCTION_FLAGS = Context.BIND_ALLOW_OOM_MANAGEMENT | Context.BIND_WAIVE_PRIORITY | Context.BIND_NOT_PERCEPTIBLE | Context.BIND_NOT_VISIBLE | Context.BIND_ALLOW_FREEZE; | Context.BIND_NOT_PERCEPTIBLE | Context.BIND_NOT_VISIBLE; /** @hide */ @IntDef(flag = true, prefix = { "RECEIVER_VISIBLE" }, value = { Loading
services/core/java/com/android/server/am/ActiveServices.java +5 −0 Original line number Diff line number Diff line Loading @@ -4162,6 +4162,11 @@ public final class ActiveServices { "BIND_ALLOW_FOREGROUND_SERVICE_STARTS_FROM_BACKGROUND"); } if ((flags & Context.BIND_ALLOW_FREEZE) != 0 && !isCallerSystem) { throw new SecurityException("Non-system caller (pid=" + callingPid + ") set BIND_ALLOW_FREEZE when binding service " + service); } final boolean callerFg = callerApp.mState.getSetSchedGroup() != ProcessList.SCHED_GROUP_BACKGROUND; final boolean isBindExternal = Loading