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
This commit is contained in:
Yi Kong 2022-09-01 01:21:00 +08:00
parent ace6c8c76e
commit a26982f821

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());
}