A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.
service: auto-inject 5900 + 4713 hostfwds for X11 viewer
ExTv698bb3577400
diff --git a/app/src/main/java/com/excp/podroid/service/PodroidService.kt b/app/src/main/java/com/excp/podroid/service/PodroidService.ktindex 8447ae0..5f795a9 100644--- a/app/src/main/java/com/excp/podroid/service/PodroidService.kt+++ b/app/src/main/java/com/excp/podroid/service/PodroidService.kt@@ -29,6 +29,7 @@ import com.excp.podroid.data.repository.SettingsRepositoryimport com.excp.podroid.engine.PodroidQemuimport com.excp.podroid.engine.VmStateimport com.excp.podroid.util.NetworkUtils+import com.excp.podroid.x11.X11Constantsimport dagger.hilt.android.AndroidEntryPointimport kotlinx.coroutines.*import kotlinx.coroutines.flow.combine@@ -178,6 +179,15 @@ class PodroidService : Service() {rules.add(com.excp.podroid.data.repository.PortForwardRule(SSH_HOST_PORT, 22, "tcp"))}+ // Always-on X11 viewer forwards. These are implicit, not user-managed —+ // they back the in-app screen toggle and never appear in the PortForward UI.+ if (rules.none { it.hostPort == X11Constants.VNC_PORT }) {+ rules.add(com.excp.podroid.data.repository.PortForwardRule(X11Constants.VNC_PORT, X11Constants.VNC_PORT, "tcp"))+ }+ if (rules.none { it.hostPort == X11Constants.AUDIO_PORT }) {+ rules.add(com.excp.podroid.data.repository.PortForwardRule(X11Constants.AUDIO_PORT, X11Constants.AUDIO_PORT, "tcp"))+ }+val config = com.excp.podroid.engine.PodroidQemu.LaunchConfig(ramMb = settingsRepository.getVmRamMbSnapshot(),cpus = settingsRepository.getVmCpusSnapshot(),