Skip to content
Commit 6b313042 authored by Kweku Adams's avatar Kweku Adams
Browse files

Fix allow-UIJ-scheduling determination.

The ServiceRecord.fgRequired bit is updated after the call to check the
FGS while-in-use permission. This meant that trying to set the
allow-uij-scheduling bit in that method while limiting it to foreground
services didn't work properly. Instead, wait until the system has
confirmed the FGS can start and updated the ServiceRecord bits before
setting the allow-uij-scheduling bit.

Bug: 277635240
Test: atest CtsJobSchedulerTestCases:UserInitiatedJobTest
Change-Id: Iccb8a9b2ee39745f8f9c9d5db4bcf969cf175997
parent 9d1c9281
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