Conversation

I'll need to do some work on the remote attestation implementation in the Auditor app to make it work better with the power optimizations in Android P. Google has made it impossible to reliably upload an attestation even once a day with JobScheduler.
Quote Tweet
Replying to @DanielMicay and @iNPUTmice
My Auditor app ends up in the Rare bucket since it's not meant to be regularly interacted with at all. I can't see any way to do what is required to keep reliably sending remote attestations on a schedule without resorting to an awful mess of alarms with a battery opt exception.
1
1
It currently ends up not sending the attestations on the expected schedule and then the alerts will probably be triggered. For now, I should probably just set the minimum alert delay to a value like 48 hours so people stop getting unnecessarily spammed with the alert emails.
1
1
It's really hard to understand why it's no longer possible to upload 300 bytes every 4-6 hours with JobScheduler. I can definitely work around it by hacking together something uglier, but it's going to waste more power / resources than the desired JobScheduler implementation...
2
1
Can get that down to a couple hours by using alarms and getting a battery optimization exception, but it really shouldn't be that way... Struggling to find a better approach than that, and getting an exception relies on Google agreeing with it since they police the exceptions.