Skip to content

A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.

feat: add wakelock management and boot stage notifications to service

ExTvacbb8815971d
diff --git a/app/src/main/java/com/excp/podroid/service/PodroidService.kt b/app/src/main/java/com/excp/podroid/service/PodroidService.kt
index 210d2be..5bb27f5 100644
--- a/app/src/main/java/com/excp/podroid/service/PodroidService.kt
+++ b/app/src/main/java/com/excp/podroid/service/PodroidService.kt
@@ -134,6 +134,13 @@ class PodroidService : Service() {
}
}
}
+ launch {
+ podroidQemu.bootStage.collect { stage ->
+ if (podroidQemu.state.value is VmState.Starting && stage.isNotEmpty()) {
+ updateNotification(stage)
+ }
+ }
+ }
launch {
// Terminal states: release resources and shut down the service.
// Error must be included here — otherwise a failed boot leaves the