dozeless 0.1.0
dozeless: ^0.1.0 copied to clipboard
AlarmManager-only background job runner for Flutter on Android. Job logic is written in Dart and runs in a headless engine.
0.1.0 #
- Exact-alarm job chain per job id with an inexact fallback, re-armed before every run.
- Dart job callbacks run in a cached headless FlutterEngine and are awaited, with a timeout and a wake lock.
- Prerequisites (location, background location, battery unrestricted, not background-restricted), stop and resume with a notification.
- Recovery after boot, app update, force stop and clock changes; hourly watchdog. On Android 15+ this includes the
BOOT_COMPLETEDthe system sends without a reboot when a user action ends the force-stopped state. - System events for jobs:
boot,timeChanged,timezoneChanged,processExit. - Optional Quick Settings tile (
DozelessTileService) that repairs every job, also after a force stop, without opening the app. - Optional force-stop guard (
DozelessAdminReceiver,Setting.forceStopGuard,Dozeless.disableForceStopGuard()): a device admin without policies, so Settings disables "Force stop". As device owner it also setssetUserControlDisabledPackages. Its state is inPrerequisiteStatus.forceStopGuardandforceStopGuardAvailable.