mirror of
https://github.com/Monkopedia/rouse-context.git
synced 2026-11-29 11:13:05 +00:00
Android 15+ enforces a cumulative ~6h/24h limit on dataSync foreground services. When the budget is exhausted while the service is running, the system calls Service.onTimeout() and requires a prompt stop; otherwise it force-kills the process with ForegroundServiceDidNotStopInTimeException (#450, #451). TunnelForegroundService handled the symmetric start-time case (ForegroundServiceStartNotAllowedException -> notify + stopSelf) but never overrode onTimeout, so a budget that ran out mid-session crashed silently. v1.0.2's keep-Ktor-alive-across-idle change made the service stay foregrounded longer, accelerating accumulation toward the cap. Override onTimeout to mirror the start-time path: suppress reconnect, post the existing FgsLimitNotifier, and stopSelf. Add a Robolectric test (@Config sdk=35) covering the handler, and a docs/ux-decisions.md entry for the new lifecycle moment at which the budget notification can appear. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| auth-pages | ||
| design | ||
| internal | ||
| notifications | ||
| screenshots | ||
| user | ||
| agent-quickstart.md | ||
| audit.md | ||
| security-audit-2026-04-07.md | ||
| security-decisions.md | ||
| security.md | ||
| self-hosting.md | ||
| test-coverage-audit.md | ||
| ux-decisions.md | ||
| workflow.md | ||