profcollect: Reduce background processing job priority

The processing job is non-critical but quite CPU intensive. Reducing
priority allows the system to throttle the job more aggresively.

Test: presubmit
Bug: 241948742
Change-Id: Ie7aa921dec1aa1f4f8582041dae1679950f4d868
(cherry picked from commit a26982f821)
Merged-In: Ie7aa921dec1aa1f4f8582041dae1679950f4d868
This commit is contained in:
Yi Kong
2022-09-01 01:21:00 +08:00
committed by Cherrypicker Worker
parent 21688acee8
commit ab991a63ee

View File

@@ -205,6 +205,7 @@ public final class ProfcollectForwardingService extends SystemService {
.setRequiresDeviceIdle(true)
.setRequiresCharging(true)
.setPeriodic(BG_PROCESS_PERIOD)
.setPriority(JobInfo.PRIORITY_MIN)
.build());
}