r/Android • • 2d ago

News LineageOS 24 (Android 17) for PC (With Googlebook interface)

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.

EDIT: Linux support is ok now, working with X11 and Wayland apps, you can choose a distro on the app and install any graphic app, it's will appear on the menu

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

ISO: https://sourceforge.net/projects/capivaos/files/android-17/ (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.

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

43 Upvotes

19 comments sorted by

3

u/ExpensiveCarry1 1d ago

So cool to have android on PC. Minimum specs required??

5

u/mateusseiboth 1d ago

Thanks! Rough minimum:

- 64-bit Intel or AMD CPU with SSE4.2 (pretty much anything from 2010 on)

- 4 GB RAM. It boots with less but gets painful. 8 GB is comfortable

- GPU: Intel HD from Broadwell (5th gen) up, AMD Radeon HD 7000 / GCN and newer. Older Intel (Ivy Bridge, Haswell) and NVIDIA through nouveau are hit or miss right now

- An 8 GB USB stick for the live ISO, and about 10 GB free on a partition you already have if you install it

- UEFI or legacy BIOS both work

Honestly the GPU matters more than the CPU. If something fails it's almost always graphics. I've mostly tested in VMs so far, so real hardware reports help a lot.

2

u/PsychologicalPost894 1d ago

Does it work with a mini PC with a Ryzen 5 6600H?

3

u/mateusseiboth 1d ago

The laptop I'm using for testing has exactly that processor, the ISO I'm uploading (probably finished by tomorrow) has the Wi-Fi fixed (at least on my laptop), so yes.

2

u/Yahiroz Pixel 10 Pro | OnePlus Watch 2 1d ago

Worth sharing this in r/Androidx86 too, it's been a long while since I've see an Android x86 project this promising.

1

u/mateusseiboth 1d ago

I'll repost it there

7

u/DerDave 1d ago

Cool stuff! I wonder if upstream Lineageos is interested in something like this 

1

u/Unlikely-Ad3364 Xperia 5 V, crDroid 13 | crDroid maintainer 1d ago

seems like kang of 0xcafebabe's LineageOS x86 work. 

2

u/mateusseiboth 1d ago

Only the linked and mentioned repositories were used as sources, the rest is original work

1

u/Maleficent-Bet-2943 1d ago

bro i tried to boot but it fails my system specs

Device name INBOOK_X1_NEO

Processor Intel(R) Celeron(R) N5100 @ 1.10GHz (1.10 GHz)

Installed RAM 8.00 GB (7.75 GB usable)

Graphics card Intel(R) UHD Graphics (512 MB)

Storage 162 GB of 238 GB used

2

u/mateusseiboth 1d ago

Could you send me the boot log so I can see exactly where it stopped?

•

u/Maleficent-Bet-2943 19h ago

My pc just crash after GRUB i selected to boot by select each option but on choose it instantly reboot nothing is apeared like other Andoid pc builds like bass,bliss,prime os and one more question whats specs required for devlopment of android 17 os for pc i also trying to build

2

u/Original_Thing8770 1d ago

This is so nice!!!!

•

u/ImportantSense5572 21h ago

it comes with some androide apps like youtube and other

•

u/Artistic_Waltz606 22h ago

One question: can this be installed alongside Windows as a dual boot? But I saw that the system comes with MicroG and F-Droid as alternatives. But is it possible to get the system together with MicroG and F-Droid instead of Google Play services?