diff options
| author | 2023-04-11 20:55:10 +0000 | |
|---|---|---|
| committer | 2023-04-11 22:30:05 +0000 | |
| commit | 6b3130423780176785071d4f766d4010026256b6 (patch) | |
| tree | 7e3c06f4ad77a09673b3db9ab9b347abb3a07c4d /libs/androidfw/AttributeResolution.cpp | |
| parent | 9d1c928132a08ffbb18341fd91563e1d7e944e56 (diff) | |
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
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions