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

Skip to content
Commit 85033f33 authored by Kweku Adams's avatar Kweku Adams
Browse files

Prevent prefetch jobs from having deadlines.

Now that we're trying to run prefetch jobs close to app launch, there's
no good reason for a prefetch job to have a deadline. Periodic jobs
don't run until the constraints are satisfied. Just wanting to run a
prefetch job by some time just for the sake of running it is not
something we want to allow. Gated by target SDK, updated apps will be
prevented from scheduling a prefetch job with a deadline.

Bug: 194532703
Test: adb shell am compat disable 194532703 android.jobscheduler.cts; atest android.jobscheduler.cts.JobInfoTest#testPrefetch
Test: adb shell am compat reset 194532703 android.jobscheduler.cts; atest android.jobscheduler.cts.JobInfoTest#testPrefetch
Change-Id: I92d91c89d01765f76064dd00725137f166ca483f
parent 638e4594
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