r/osdev • • 6d ago

I built OpenWave, a mobile Linux OS with its own userspace

Hi everyone,

I've been working on a mobile Linux OS called OpenWave for a while, and it's finally in good enough shape to show people who care about this stuff.

First, what it isn't. It's not an Android ROM, it's not based on AOSP, and it's not a launcher. It's a Linux system with its own userspace: its own shell, app lifecycle, permission system and deployment tooling. Android apps run through Waydroid, but Android is a guest here. Native apps don't need it at all.

Right now it boots and runs in QEMU (x86-64 and ARM64). It's experimental, so please don't think of it as something you can daily drive. Booting on an actual phone is the biggest thing still missing.

The stack​

Linux kernel, C/C++, Qt and Qt Quick for the shell, Wayland, WPE WebKit for the browser, D-Bus for IPC, LLVM/Clang, and RPM for packaging. For isolation I'm layering SELinux, Landlock, bubblewrap/namespaces, seccomp and cgroups. The filesystem has its own layout too: /System, /Applications and /Data.

Userspace​

I didn't want the shell to do everything, so the system is split into small services with clear jobs:

  • appd handles the app lifecycle: registration, launching, sandbox setup, cleanup.
  • permissiond tracks what an app declares versus what the user actually allowed. It handles temporary and persistent grants, revocation, and removing records on uninstall.
  • promptd is a single broker for system prompts, so permission dialogs look and behave the same everywhere. Ocean draws them.
  • appdeploy (plus libappdeploy) installs and removes apps, validates manifests and creates app directories. Privileged operations are kept separate from the normal ones.
  • connectivityd, audiod, timed, wallpaperagentd cover networking, audio, date/time and wallpaper.
  • openwave-portal lets sandboxed apps ask the system for things like a file picker, so they don't need broad filesystem access.

Notifications and media services come next.

When you tap an app, the launcher asks appd to start it. appd checks permissions with permissiond (which may ask you through promptd), builds the sandbox, and starts the process with the shared system libraries, its own private data directory and a Wayland connection.

The security model is the part I care about most, but I'll be honest that it isn't fully wired up yet. The pieces exist, and how much of the system they actually enforce on is still in progress.

Ocean (the shell)​

Ocean is the graphical environment, written in Qt Quick and designed for touch from the start, not a desktop shell squeezed onto a phone. So far it has a launcher and app drawer, Wayland composition, app switching, gesture navigation, system dialogs and an integrated Settings app.

Native apps​

  • Ocean Browser, built on WPE WebKit (no Chromium or QtWebEngine)
  • Ocean Settings, which covers system config, connectivity, appearance, app permissions and the Android environment
  • Files

Android compatibility​

I'm using Waydroid with customized Android 13 images, but I didn't want it to feel like a separate Android desktop in a window. I've removed the status bar and replaced navigation with a single back button. Android apps launch through OpenWave's own launcher, on top of binder/binderfs and LXC.

Aurora Store, NewPipe and F-droid already run. The milestone I'm happiest with is getting the Android container running under SELinux enforcing, in its own security domain.

Build setup​

I currently have my own build infrastructure. I'm also evaluating OpenEmbedded/BitBake for reproducible builds, cross-compiling, RPM generation, incremental builds and board support. Android keeps its own separate build.

Where things stand​

Working in a VM: boot, the Qt Quick shell, launching native apps, Settings, Files, WPE-based browsing, the Android container, Android apps, and Android under SELinux enforcement.

Not done: real phone hardware, telephony, camera, power management, hardware acceleration on target devices, and proper security validation.

Next up: stabilizing the userspace, finishing the staged app lifecycle, full native app sandboxing, a package repository, deeper Android integration, notifications and media, polishing Ocean, ARM64 phone bring-up, telephony, and automated QA and security regression tests.

Help wanted​

OpenWave is independently developed so far, and I'd love feedback, testing and contributions, especially from people who know:

  • Kernel work, phone hardware enablement, ARM64 and device trees
  • Qt/QML and Wayland
  • C/C++ userspace
  • SELinux and Linux security
  • Android/AOSP/Waydroid
  • Physical phone testing
  • notificationd (centralized notification system, connected to Waydroid too)
  • Telephony and mobile networking

I'll use this thread as a dev journal, with screenshots, milestones and test builds as they come.

GitHub: https://github.com/bayar17/OpenWave

Thanks for reading. Questions and criticism are welcome.

0 Upvotes

2 comments sorted by

3

u/No_Frame3855 6d ago

MicroWave

1

u/Odd_Doughnut4592 6d ago

It does heat up fast on boot