Skip to content
Commit 859ba069 authored by Hui Yu's avatar Hui Yu
Browse files

Allow FGS start for proc state BOUND_FOREGROUND_SERVICE and above.

FGS start is allowed for proc state BOUND_FOREGROUND_SERVICE and above.
Allowed states are:
PERSISTENT,
TOP,
BOUND_TOP (when bound by TOP process),
FOREGROUND_SERVICE (when process has FGS),
and BOUND_FOREGROUND_SERVICE (when bound by PERSISTENT process).
The process must arrived at these states by aforementioned bound path.
It should not be transitive.

Add a field mAllowStartFgsState in ProcessRecord, this field is set in
OomAdjuster.java.

Bug: 171305836.
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerFgsBgStartTest.java
Change-Id: I3f11b4e13ce2f66c04ca775219f918450710d0b6
parent 79477111
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment