Files
DroidDeck/app
The412Banner ca8070b49f fix(runtime): first-run setup no longer crashes when the app is in the background
With targetSdk 34, Android refuses startForeground() while the app is in the
background. RuntimeInstallService called it unguarded on the main thread, so
the refusal (ForegroundServiceStartNotAllowedException) killed the app. Seen
on a Pocket FIT twice in a row at first run: the runtime finished while
DroidDeck-Proton was still downloading, Onboarding asked for a package hold
(RuntimeInstallService.kt:49 via onStartCommand :22) and the user was in
another app.

Both foreground starts now catch the refusal: a package hold stops the
service and the downloads go on in the app as when startForegroundService()
itself is refused; a runtime install or removal still runs, without progress
notifications.
2026-11-25 13:29:22 -05:00
..