mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 21:15:43 +00:00
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.