Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2b353f86 authored by Kweku Adams's avatar Kweku Adams
Browse files

Add permission check to setBias.

The job bias is meant to be an indication of the job type and the state
the app was in when the job was scheduled. This can only be determined
by the system and certain privileged apps. The job bias can affect some
things such as which system health factors are taken into consideration
when deciding when to run a job. Given all this, the bias should only be
set by the system or certain privileged apps. Note the required permission
on the hidden API and enforce that the calling app has the permission
when the job is scheduled.

Bug: 300477393
Test: atest CtsJobSchedulerTestCases:JobInfoTest
Test: atest CtsSyncManagerTestCases
Test: atest DownloadManagerApi28Test
Test: atest FrameworksServicesTests:BiasSchedulingTest
Change-Id: I1cb37eafc42f961dee9d2e7bc7d496a31dff31f4
parent 8943b729
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