commit | 11ea457dce6b7089822e9f1bb7e539b28769292d | [log] [tgz] |
---|---|---|
author | Max Bires <jbires@google.com> | Tue Jan 25 18:01:30 2022 -0800 |
committer | Max Bires <jbires@google.com> | Tue Jan 25 18:05:28 2022 -0800 |
tree | 88b714685288d9b438196f03106d86d8946d367b | |
parent | c8a7ae45dc077325d9669749332792dcf6608fe7 [diff] |
Switching the WorkTask to a unique registration This change fixes a bug in which multiple instances of the PeriodicProvisioner Task could be scheduled, due to the enqueue method on boot not specifying a unique task. The task replacement policy is set such that a new task will always run on boot and then replace the old task in the scheduler. Test: "adb shell dumpsys jobscheduler" and check for the job Change-Id: I6e05d0057fa9be7cfea25a4cc3424ce90d7ddbaf