r/CustomROMsGuide • • 6h ago

LineageOS 24 (Android 17) for regular PCs

I've been working on a LineageOS build for x86_64 PCs, somewhat like Android-x86 or BlissOS, but using Google's Android desktop interface from Googlebook.

I already build LineageOS myself, so at some point I decided to try bringing it to regular PCs. I wanted something that actually feels like a desktop, rather than Android running full-screen with a few desktop features bolted on.

Screenshots: https://imgur.com/a/asxGcln

ISO: On android_device_pc_x86_64 repo (Still uploading. SourceForge is painfully slow from where I live)

Current state

- Boots from a live ISO on both UEFI and legacy BIOS. Secure Boot is supported through shim using your own MOK key. It also works with Ventoy.

- There's an installer app included in the live session. It installs Android into a folder on an existing partition, without repartitioning or touching your other files. You can install it as a single image file or extract the system into a folder. Updates replace only the system files and keep the previous version, which you can still boot from GRUB if something goes wrong.

- The desktop has freeform windows with title bars, a taskbar, an app launcher, quick settings, notifications, a calendar, regional screenshots, screen recording and keyboard shortcuts.

- There's a proper login screen with multiple users, including a headless system user mode, similar to Googlebook.

- Kernel 7.2, built with AOSP's clang, and Mesa 26.1 with support for radeonsi, iris, nouveau, virgl, RADV and ANV.

- Graphics stack uses minigbm with Mesa GBM and drm_hwcomposer.

- The boot screen displays the actual boot log instead of a pointless animation. There's also a capybara in there. That part was non-negotiable.

- microG and F-Droid are included. For Google Play, the installer can integrate a Google apps package generated from an image you provide. I can't redistribute Google's proprietary apps, so you'll have to supply those yourself. (but in the source forge you can find a ISO with google apps included ;) )

I also ended up writing several apps because the existing Android ones either don't exist or aren't particularly useful on a desktop:

- Task manager

- System diagnostics covering CPU, RAM, storage, network, input devices, audio and camera

- Text editor

- File viewer

- File manager with tabs and a sidebar, closer to Nautilus than Android's usual Files app

- Installer

- Custom clock faces for the lock screen

What's next

One of the things I'm currently working on is running regular Linux applications alongside Android apps, with each Linux application opening in its own Android window.

The plan is to use LXC containers sharing the host kernel, without a VM. On the Android side, a small Wayland compositor will handle the Linux application surfaces and pass their buffers to SurfaceFlinger. This should allow Linux apps to behave like normal desktop windows. X11 applications will run through XWayland.

I'm also working on a Terminal app for managing the containers, opening shells, installing different distributions and checking resource usage.

This is still a work in progress and isn't included in the ISO yet.

Known issues and limitations

- Most of my testing has been done in QEMU/KVM. I'm only starting to test on physical hardware, so GPU and Wi-Fi compatibility will probably vary.

- SELinux is currently permissive.

- The first boot after installation takes a few minutes because Android needs to unpack its system modules. Subsequent boots are normal.

- Suspend is disabled in VMs for now. QEMU's virtio-gpu doesn't properly recover after waking up.

If you decide to give it a try, let me know what hardware you're running and what doesn't work. Bug reports are very welcome, especially with logs.

There's a debug entry in the GRUB menu that sends the boot output to the serial console, which should help with troubleshooting.

Source code

Device tree, ISO and installer scripts:

https://github.com/mateusseiboth/android_device_pc_x86_64

Desktop UI (overlays, flags and design notes):

https://github.com/mateusseiboth/android_vendor_pc_ui

Forks:

- https://github.com/mateusseiboth/android_frameworks_base (branch `pc`)

- https://github.com/mateusseiboth/android_packages_apps_Launcher3 (branch `pc`)

- https://github.com/mateusseiboth/android_packages_apps_SetupWizard

- https://github.com/mateusseiboth/android_external_minigbm

- https://github.com/mateusseiboth/android_glodroid_aospext

- https://github.com/mateusseiboth/android_external_drm_hwcomposer

Apps:

- https://github.com/mateusseiboth/android_packages_apps_PcInstaller

- https://github.com/mateusseiboth/android_packages_apps_PcFiles

- https://github.com/mateusseiboth/android_packages_apps_PcTaskManager

- https://github.com/mateusseiboth/android_packages_apps_PcDiagnostics

- https://github.com/mateusseiboth/android_packages_apps_PcTextEditor

- https://github.com/mateusseiboth/android_packages_apps_PcViewer

- https://github.com/mateusseiboth/android_packages_apps_PcClocks

- https://github.com/mateusseiboth/android_packages_apps_PcLogin

3 Upvotes

3 comments sorted by

1

u/MrM4rc4L 4h ago

Você pretende atualizar ou é do uma ISO para quem está curioso em testar o Android 17 no PC?

1

u/mateusseiboth 4h ago

It's an ISO file; I'm uploading it to SourceForge, but the bitrate is only 19kb/s

1

u/PunhetinhaGamesBR 5h ago

Hey very cool