Merge "Fix issue #62196301: Pre-O background restrictions allow starts..." into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
952d68fa85
@@ -8447,8 +8447,8 @@ public class ActivityManagerService extends IActivityManager.Stub
|
|||||||
synchronized (mPidsSelfLocked) {
|
synchronized (mPidsSelfLocked) {
|
||||||
proc = mPidsSelfLocked.get(callingPid);
|
proc = mPidsSelfLocked.get(callingPid);
|
||||||
}
|
}
|
||||||
if (proc != null && proc.curProcState
|
if (proc != null &&
|
||||||
< ActivityManager.PROCESS_STATE_RECEIVER) {
|
!ActivityManager.isProcStateBackground(proc.curProcState)) {
|
||||||
// Whoever is instigating this is in the foreground, so we will allow it
|
// Whoever is instigating this is in the foreground, so we will allow it
|
||||||
// to go through.
|
// to go through.
|
||||||
return ActivityManager.APP_START_MODE_NORMAL;
|
return ActivityManager.APP_START_MODE_NORMAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user