Use the normal desktop user in an Ubuntu 24.04 X11 VM, with sudo access. This workflow owns a dedicated nested Weston kiosk and Waydroid session. It is not the Termux workflow and does not change the Linux desktop's lock policy.
For unattended desktop startup and a separately managed ORC UI, use the Waydroid service integration. Do not run the manual workflow concurrently with those services.
The existing installer checks kernel Binder support, installs the official Waydroid package, Weston, ADB and diagnostics, and initializes a GAPPS Android image only when no Waydroid configuration exists. Existing images, apps, accounts, ARM translation and data are preserved. Without --init-gapps, install only installs/upgrades the packages. No Android image is forcibly reinitialized.
Waze installation, Play Store/account setup and ARM translation are separate one-time Android/image tasks. This workflow does not download APKs, install third-party translation layers, accept terms or log into accounts. Fresh x86 VMs may still need a compatible image/ARM translation before Waze can be installed. GPU/image compatibility must also be validated on the particular VM; the script does not silently switch Android's graphics drivers.
This checks/starts the runtime, configures it and verifies readiness. It never launches ORC. Launch ORC separately when ready:
The Waydroid script performs the following stages:
Run is repeatable: unchanged keys/rules aren't duplicated, ready processes are reused, and guest IP changes update ORC's location configuration. Existing ADB connections are not globally disconnected and its server is not killed.
Browser location consent or an actual GNSS source is still required for a fresh host position. Mock-location setup provides a transport, not a GPS measurement. If Android restarts or ADB drops during provider cleanup, ORC revalidates the configured device and recreates its GPS test provider on the next fresh fix after connectivity returns. It does not replay stale fixes or reconnect other devices. Reachability/ADB checks do not establish Internet/DNS or Play Store availability. The network repair runs before each startup; it is not a new system-wide firewall or boot service. Bridge ARP/filtering failures that persist stop startup instead of reporting success or repeatedly rebooting Android behind the user's back.
Closing ORC leaves the managed Android session and Weston warm for the next run. Starting/configuring while ORC is already running requires restarting ORC to load changed location configuration.
run, start and configure perform the same idempotent runtime/configuration checks without launching ORC. Use configure after app installation, an Android restart or a guest-IP change. If a stage fails, it prints the failed operation; successfully started owned processes remain available for diagnosis or stop.
Status is read-only. It reports kiosk ownership, Android/bridge addresses, neighbors, ADB state, lock state, location configuration and logs. It does not start ADB to inspect it. Without cached sudo credentials, Android inspection can be unavailable; status does not prompt for credentials or repair anything. Stage logs are under ${XDG_STATE_HOME:-$HOME/.local/state}/openroadcode/waydroid-vm/. The process record and startup lock are in $XDG_RUNTIME_DIR.
Stop ends only the session/display processes started by this workflow, checking PID start times to avoid killing a reused PID. It preserves the system container service, apps/data, host ADB server, scoped runtime network rules and unrelated desktop processes. Externally started kiosks/sessions may be reused, but are not stopped by this command. Location setup can be reversed separately with the existing python3 -m scripts.setup_waydroid_location disable command.
For an intermittent bridge/ADB failure after a successful managed startup, close ORC and explicitly rebuild the Android session/network while keeping its kiosk:
Restart closes Android apps and restarts the container, then reruns configuration and readiness checks. It does not reset Android data, restart the host ADB server, or run repeatedly in the background. Use status/logs if the failure recurs.
A live legacy compositor is deliberately not killed or adopted. If startup reports that the socket belongs to an unverified/legacy compositor, close ORC, stop the Waydroid session, then stop that Weston's terminal with Ctrl+C:
Stop only the PID/terminal corresponding to the old dedicated Waydroid display. Then use waydroid_vm.sh run. A dead socket is reclaimed only after verifying that it belongs to this user, has no listener and its Wayland lock is free. A live or ambiguous socket/marker is left untouched with an actionable error.
On the VM, run configure twice and confirm ADB reports device, location is configured and the kiosk stays unlocked. Launch Waze, test mouse input in both Android and ORC, close/reopen ORC, then test stop/start. After a VM reboot, repeat run/status. Confirm Maps/browser Internet access inside Android separately. Command-fake tests validate orchestration and ownership decisions; they cannot prove Binder, graphics, networking or input behavior on the VM. The full quality gate and VM end-to-end validation remain required before declaring this ready for production use.