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
Loading
Please register or sign in to comment