I've been working on running a full desktop Ubuntu 24.04 with XFCE on the Galaxy S9 (SM-G9600, Snapdragon 845), and the first release is out.
The idea: the S9 as a portable PC. Plug it into a monitor, use a mouse and a keyboard. Touch works, but the system wasn't designed around it, and there is no on-screen keyboard in this project.
What it is
- Ubuntu 24.04 arm64 + XFCE 4.18 on the Halium 10 container, kernel 4.9.186 (FakeShell
ubports tree + a few patches) - Patched Mir/MirAL as the compositor, with a patched Xwayland 24.1.6 so X11 programs draw into Android graphics buffers and get DRI3
- OpenGL on the Adreno 630 through Freedreno on the phone's KGSL driver (Mesa), no software rendering in the normal path
- Telephony, mobile data, audio, Bluetooth, Wi-Fi, external monitor (including an ultrawide 3840x1080), screen cast, fan control and a few tray tools made for the phone
Install: stock Android 10 + unlocked bootloader, then three files from the release: a TWRP tar (flashed with Odin), a small ZIP that disables Samsung's encryption, and the Ubuntu ZIP (about 943 MB), installed from TWRP with adb sideload in about 9 minutes. At first boot you set your user name, password and host name. Chrome isn't in the ZIP (Google's proprietary package), it is downloaded automatically when the phone gets a network.
There is also a guide to go back to stock Android. I did the round trip twice: the second time I used only the files of the release and it went through with no problem.
Please read: it erases userdata and it has been tested by one person on one phone (mine). Back up first. Not tested: other people's phones, Odin on Windows, the microSD route, other models (S9+ / G965 are not supported). Hardware H.264 decoding shows repeated frames.
Credits: none of this exists without other people's work. FakeShell (SDM845 kernel tree), Gustavo2Toledo (the S9+ Ubuntu Touch port this started from), UBports and Halium, Canonical (Mir), ImPeekaboo (mesa-a630-kgsl), lfdevs (Xwayland and Mesa for Android containers), Mesa and X.Org, Mer/Sailfish OS, libhybris, Ubuntu and Xfce, TeamWin (TWRP), Ragekill3377 (Odin4-GUI), Ian Macdonald and @klabit87 (disabler scripts), Magisk. Full list with links at the end of the repo front page.