r/CustomROMsGuide • • 6h ago

LineageOS 24 (Android 17) for regular PCs

3 Upvotes

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


r/CustomROMsGuide • • 17h ago

can i install a custom rom for anything better than hios my device is tecno camon 30

Post image
3 Upvotes

r/CustomROMsGuide • • 18h ago

How do I install miui or hyperos custom rom in realme narzo n53??

2 Upvotes

As the title says I have a spare narzo n53 in which I want to install miui or hyperos I searched on YouTube there's no tutorial for realme narzo n53 does anyone here knows ???


r/CustomROMsGuide • • 22h ago

Can I recover xiaomi cloud data?

2 Upvotes

I have backed up my call logs and sms to xiaomi cloud before flashing a custom rom. Is there any way to recover it? I can view it xiaomi cloud but there's no way to download my data.


r/CustomROMsGuide • • 6h ago

Is bootloader unlocking possible on Galaxy A13 SM-A135U (Android 14)?

Thumbnail reddit.com
1 Upvotes

r/CustomROMsGuide • • 8h ago

Issues with updating bootloader on HTC Wildfire S

Thumbnail gallery
1 Upvotes

r/CustomROMsGuide • • 11h ago

Coming soon: artemisOS

1 Upvotes

r/CustomROMsGuide • • 13h ago

Is it possible to upgrade Realme 8 Pro (RMX3081) to Android 15 or newer using a custom ROM?

Thumbnail reddit.com
1 Upvotes

r/CustomROMsGuide • • 14h ago

Poco x4 pro 5g custom rom

1 Upvotes

Can anyone plz help me to unlock my poco x4 5g Indian variant bootloader and custom rom it . It currently running on hyperos 1 based on android 13 and its very unoptimiz and unusable


r/CustomROMsGuide • • 17h ago

Can I upgrade my POCO X2 to a newer Android version using a Custom ROM

Thumbnail reddit.com
1 Upvotes