Skip to content
Projekte

mateusseiboth/android_device_pc_x86_64

Auf GitHub ansehen

Über uns

Árvore de dispositivo do LineageOS 24.0 para PCs x86_64 (instalação em pasta, boot pelo GRUB)

Design und Medien

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
Verlauf wird gesammelt
in 7 days
Verlauf wird gesammelt
in 15 days
Verlauf wird gesammelt
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

LineageOS 24.0 for x86_64 PCs

Device tree for lineage_pc_x86_64: LineageOS (Android 17) on ordinary PCs, installed into a folder on an existing partition and booted through GRUB, in the spirit of Android-x86 and BlissOS.

Status

Part State
Product, board, lunch builds (system.img, live ISO)
Kernel upstream 7.2 with Fedora's config + Android requirements, built with AOSP clang
Graphics Mesa (radeonsi, iris, crocus, r600, nouveau, virgl, svga, softpipe; RADV, ANV, venus), minigbm on Mesa's GBM, drm_hwcomposer; virgl checked in QEMU/KVM (virtio-vga-gl); VMware and VirtualBox need their SVGA with 3D acceleration on (VirtualBox: VMSVGA)
Boot pc-init initrd (folder install, live ISO); the live ISO boots to the desktop in QEMU/KVM; UEFI Secure Boot through shim + MOK checked in QEMU (shim, GRUB, signed kernel)
HALs AOSP software HALs, AIDL audio over ALSA, Wi-Fi (nl80211), Bluetooth with the profiles of a PC, USB cameras, IIO sensors (accelerometer, light), our Power HAL. They start in QEMU; real hardware is tested one PC at a time, see Tested devices
Installer PcInstaller app + pc-installd root service (packages/apps/PcInstaller), UEFI and BIOS, install, update (also from a USB drive on an installed system) and removal; GRUB's BIOS boot sector checked in QEMU, Android not yet booted
Desktop UI vendor/pc/ui + pc branches of frameworks/base and Launcher3; runs in QEMU/KVM (screenshots below)
Linux terminal Terminal runs Linux containers (Debian, Ubuntu, Fedora, Arch...) through the root service pc-containerd, with an Android shell; Linux apps open as windows through PcWayland
ARM apps libndk_translation (Berberis) from a local-only vendor folder, arm64 only
Google services microG by default; a Google apps edition for builders who bring the files themselves
Browser Chromium "Android Desktop" (Google's snapshot builds, fetched by the builder, signed with our key); Jelly when the fetch or the key is missing
Remote desktop CapivaRDP (rdp-client-android, br.com.capivapp.rdpclient), the owner's signed APK from the local vendor/capivapp (never pushed), in both editions; builds without it lack the app
Surface linux-surface kernel patches, touch screen and pen (iptsd), sensors, Type Cover keyboard, Pro 7 microphones
Updates System updates applies one-file updates and patches to an installed system (docs/UPDATES.md)
Boot log pc-bootlog: the live log as a terminal instead of the boot animation; runs in QEMU/KVM. Logs of the last boots and kernel panics are kept in the install folder
Power our Power HAL (power/): profiles, device power saving on battery, charge limit, turbo, idle states, power limits (PL1/PL2), fan curves; touchpads and wired network cards do not wake the PC; lid and power button behaviors

Sources

Sync LineageOS 24.0 with the projects of LineageOS for PCs on top. They are listed in local_manifest.xml, the same file the ISOs are built from:

repo init -u https://github.com/LineageOS/android.git -b lineage-24.0 --git-lfs
mkdir -p .repo/local_manifests
curl -o .repo/local_manifests/pc.xml https://raw.githubusercontent.com/mateusseiboth/android_device_pc_x86_64/lineage-24.0/local_manifest.xml
repo sync
device/pc/pc_x86_64/patches/apply.sh

patches/apply.sh applies the few fixes this tree carries for projects it does not fork (patches/<project path>/*.patch, with git am, so the original author stays); run it again after every repo sync, it skips what a project already has. Today: Mesa's BLORP fix for Sandy Bridge and older Intel graphics from Mesa 26.1.2 (garbled text and images on Mesa 26.1, mesa#15435), a Bluetooth stack fix that lets old controllers without Low Energy (Bluetooth 2.1/3.0, such as the Atheros AR3011) turn on with Classic only, instead of crashing the Bluetooth process in a loop, Mesa svga's RGBA and RGBX window buffers for VMware, a fix to the default Bluetooth HAL, which spun on short rfkill reads at full CPU and flooded logcat (Realtek RTL8852BU), the audio HAL opening the built-in microphone's PCM on SOF cards (Surface Pro 7), and inputflinger counting a Surface Type Cover as an alphabetic keyboard.

Forks: minigbm keeps GloDroid's sources (from android-generic) with Android 17's build files plus AIDL/stable-C gbm_mesa variants; aospext builds radeonsi without LLVM and only pulls libva when VA is enabled.

Apps and projects

Everything below is ours and open source (the repositories are listed in local_manifest.xml, except the two that live outside the Android tree).

Apps of the system

Project What it is
PcInstaller Installs the system from the live USB stick, and once installed it is System updates: updates and patches, from a file or online.
PcFiles Files, the file manager (it replaces the stock Files app; partitions mounted by Disks show there too).
PcTerminal Terminal and Linux containers (Debian, Ubuntu, Fedora, Arch...), with its root service pc-containerd; also an Android shell (adb shell-like, root with Rooted debugging on), Android's external drives under /media in the containers, and a USB devices and drives page that shares a whole USB device with a container or gives it a USB drive as a whole disk.
PcWayland Runs Linux apps as windows of their own (Wayland and X11 with GPU acceleration, sound).
PcPrint Printers and scanners: prints to network and USB printers without drivers, scans with eSCL scanners.
PcDisks Disks: partitions, mounting, formatting, labels and disk health.
PcNetwork Network manager: per app, block Wi-Fi, mobile data, Ethernet, VPN, everything or the background, limit download and upload, and watch which domains each app connects to (blocking one for an app or for all). Reached from Settings > Network & internet and each app's info page.
PcRemote Remote desktop: lets another computer connect to this one by RDP, switched on in Settings.
PcAdBlock Ad blocking for every app, from block lists you add by URL (Settings > Network & internet).
PcRoot Root access, off by default: su, the root service and a root manager (Settings > System > Root access).
PcKeyMapper Key Mapper: turns keys and the mouse into touches on the screen, per game. Ctrl+Shift+K places the controls over the game: taps, a joystick on WASD or the arrows, and aiming with the mouse.
PcClipboard Clipboard history: texts, images and links copied recently, one click away in the status bar.
PcTaskManager Task manager: what is running, how much CPU and memory it uses, a way to end an app, and the wakelocks that keep the PC awake.
PcDiagnostics Diagnostics: live CPU, memory, storage, GPU (Intel and AMD), CPU idle states, battery (power and temperature) and network readings, and testers for the keyboard, touchpad, speakers, microphone, camera and more. In the Google apps edition it also has a Google certification page with the device ID (GSF) to register for the Play Store.
PcTextEditor Text editor for plain text files.
PcViewer Viewer, the default app for images, SVG, PDFs, text, audio and video.
PcClocks Lock screen clock styles for the style picker.
PcLogin The login screen: the people who use the PC, each with their own PIN, pattern or password if they set one. There is no swipe lock screen: without one of those a user goes straight in, and Settings doesn't offer "Swipe".

Outside the Android tree

Project What it is
rdp-client-android A Remote Desktop (RDP) client for any Android, also published on its own.
lineage-pc-updates The update list the System updates app reads, with the changelog.

Forks (changes to LineageOS, AOSP and other projects, credited in each one)

Project What it is
frameworks/base The desktop: status bar with media chip (title, previous, play, next, close), clipboard button, notification cards, windows, task bar, Single bar, lid and power button behavior (SystemUI, WM Shell and the window manager).
Launcher3 The desktop (icons, files and apps dropped on it, Linux apps), app list and task bar.
vendor/pc/ui The desktop's overlays and feature flags.
Settings Settings for a computer: monitors, battery only when there is one, remote desktop, Power (profile, turbo, idle states, power limits, fan curve, power button), Single bar, Root access, ad blocking and the network manager's pages, and Adaptive brightness only on a PC with a light sensor.
SetupWizard The first-boot setup.
frameworks/native SurfaceFlinger with two screens: the built-in one paces the frames.
Connectivity Local network access for the Linux containers.
drm_hwcomposer Screen output on any GPU (opens every DRM card, smooth on two monitors, modesets only when needed).
minigbm Graphics buffers for every GPU through Mesa (gbm_mesa), with Android 17's AIDL allocator and aligned NV12 and YV12 strides for cameras and decoders.
aospext Builds Mesa inside the Android build.
adb adb root for the signed-in user.
logging System apps read the logs without a consent dialog.
FreeRDP FreeRDP, the RDP library behind the remote desktop and the RDP client.
iptsd The touch screen and pen of Surface devices (linux-surface's daemon, built for Android).

Build

# once: your Secure Boot key pair (see "Secure Boot keys for your build") and Fedora's shim
device/pc/pc_x86_64/secureboot/make_keys.sh           # -> $PC_SECUREBOOT_KEYS (default ../keys)
device/pc/pc_x86_64/secureboot/fetch_shim.sh          # -> out/secureboot/shim
# once: host tools for Mesa's Intel drivers (needs llvm22-devel clang22-devel libclc22-devel
# libclc22-spirv spirv-llvm-translator22-devel on Fedora 45)
meson setup ... external/mesa3d  # see "Mesa host tools" below
device/pc/pc_x86_64/kernel/stage_firmware.sh          # /lib/firmware -> vendor/pc/firmware
device/pc/pc_x86_64/kernel/build_kernel.sh            # -> out/kernel-pc (modules signed with your key; builds Broadcom's wl too)
source build/envsetup.sh && lunch lineage_pc_x86_64-cp2a-userdebug && m systemimage
python3 device/pc/pc_x86_64/iso/build_iso.py out/lineage-pc.iso   # signs GRUB and the kernel with your key

Host tools: AOSP's prebuilts plus grub2-mkimage (Fedora's grub2 2.12 with --sbat), sbsign/sbverify (sbsigntools), openssl, xorriso, mtools, dosfstools, curl, rpm2cpio and cpio.

On a 32 GB machine Soong's analysis needs help: a large zstd zram, GOGC=50 GOMEMLIMIT=20GiB, and the PRODUCT_SOURCE_ROOT_DIRS exclusions in device.mk (other platforms' trees).

Trying a kernel without building Android

The kernel builds without the Android tree, on any Linux machine (an ARM one too, cross-compiling); then iso/remaster_iso.py puts it and its modules into an official ISO, without root:

# the tree build_kernel.sh expects: kernel/pc (the kernel source as a git repository),
# kernel/configs/b/android-6.12/android-base.config, external/linux-surface/patches/7.2, this repository
# in device/pc/pc_x86_64. On aarch64, also ARCH=x86_64 KERNEL_CLANG=/usr/bin (Debian's clang 18 does).
PC_SECUREBOOT_KEYS=~/keys device/pc/pc_x86_64/kernel/build_kernel.sh all
sbsign --key ~/keys/pc-secureboot.key --cert ~/keys/pc-secureboot.crt \
    --output bzImage.signed out/kernel-pc/arch/x86/boot/bzImage
device/pc/pc_x86_64/iso/remaster_iso.py lineage-pc-gapps-<date>.iso lineage-pc-test.iso \
    --kernel bzImage.signed --key ~/keys/pc-secureboot.der \
    --modules out/kernel-pc/modules-install/lib/modules/<release>

It replaces the kernel, and the modules in system.img with their indexes (modules.dep, .alias, .softdep, .load, written as the Android build writes them: run on the official kernel's own modules, it gives back the official files byte for byte). Everything else stays: boot records, volume name, date and UUID, GRUB and its menu. A change on the Android side still needs the Android build.

With Secure Boot on, GRUB is still the official one: --key puts your key beside it as ENROLL_THIS_KEY_TOO_kernel.der, and SECURE_BOOT.txt says to enroll both in MokManager. Without --key, the kernel must be signed with the key that signed the ISO's GRUB. A system installed from this ISO still takes the official updates, which put the official kernel back.

Mesa host tools

Mesa 26's Intel drivers precompile OpenCL shaders with mesa_clc and vtn_bindgen2. Build them on the host from external/mesa3d (LLVM 22, -Dmesa-clc=enabled -Dinstall-mesa-clc=true, every driver off) and copy both binaries to prebuilts/mesa-build-deps/, which aospext puts on the PATH.

Secure Boot

UEFI boots with Secure Boot on through shim and a Machine Owner Key (MOK):

firmware (Microsoft's keys) -> shimx64.efi (Fedora's, signed by Microsoft)
    -> grubx64.efi (signed with your key, SBAT inside) -> kernel (signed with your key, verified by shim for GRUB)
    -> kernel modules (signed with your key at modules_install; the kernel embeds the certificate)

The first start with Secure Boot on: shim cannot verify GRUB yet and opens MokManager. Press Enter on the error, then any key within 10 seconds, choose "Enroll key from disk", the LINEAGE_PC volume and ENROLL_THIS_KEY_IN_MOKMANAGER.der, then "Continue", "Yes" and "Reboot". From then on that computer boots every build signed with the same key. The ISO carries the same steps in pt-BR and English as SECURE_BOOT.txt (root of the stick's EFI partition and lineage/), and its GRUB menu shows them in "Secure Boot: help (ajuda)". The installer puts shim, MokManager, the signed GRUB and the .der in EFI/LineageOS and points the UEFI boot entry at shim; when the key is not enrolled it offers to queue the enrollment (as mokutil --import does), so the next start only asks to confirm it with a password.

Secure Boot keys for your build

Every build is signed with the builder's own key pair; nothing in the tree holds one.

  1. Generate it once: device/pc/pc_x86_64/secureboot/make_keys.sh. It writes to $PC_SECUREBOOT_KEYS (default: keys/ beside the source tree, e.g. ~/android/keys for a tree in ~/android/lineage) and refuses a directory inside a git work tree. PC_SECUREBOOT_NAME sets the name MokManager shows.
  2. Keep the private key out of git and never publish it: pc-secureboot.key and pc-secureboot.pem (key + certificate). Back them up: a new pair means every computer has to enroll again.
  3. Build the kernel and the ISO with the same PC_SECUREBOOT_KEYS: build_kernel.sh signs the modules with pc-secureboot.pem, build_iso.py signs GRUB and the kernel with pc-secureboot.key/.crt and copies pc-secureboot.der to the ISO as ENROLL_THIS_KEY_IN_MOKMANAGER.der.
  4. Users enroll your .der in MokManager (above), once per computer.

A build without keys is refused before anything is built, with the missing files and what to run. PC_SHIM_DIR points the ISO build at another shimx64.efi + mmx64.efi pair (default out/secureboot/shim, filled by fetch_shim.sh, which pins the files' SHA-256).

What Secure Boot changes in the kernel

  • Upstream 7.2 has no CONFIG_LOCK_DOWN_IN_EFI_SECURE_BOOT (a Fedora patch; the line in Fedora's config has no effect), so the lockdown LSM stays at none: kexec, /dev/mem, debugfs, BPF and the rest behave as without Secure Boot. Checked in QEMU: /sys/kernel/security/lockdown reads [none].
  • IMA's architecture policy (CONFIG_IMA_ARCH_POLICY, Fedora's) sees Secure Boot and turns on module and kexec signature enforcement: /sys/module/module/parameters/sig_enforce reads Y. That is why every module is signed (CONFIG_MODULE_SIG_ALL); MODULE_SIG_FORCE stays off, so without Secure Boot unsigned modules still load. Android needs no kexec.
  • BoardConfig.mk sets BOARD_DO_NOT_STRIP_VENDOR_MODULES: the build's own strip would drop the signature.
  • shim mirrors the MOK list to the kernel, which loads it into its platform and machine keyrings.

Checking it

secureboot/sb_boot_test.py out/lineage-pc.iso boots the ISO in QEMU with OVMF's Secure Boot firmware and Microsoft's keys (1 GiB, no display): the first start refuses GRUB and the test enrolls the key in MokManager the way a user does; then the stick and the DVD boot the kernel ("Secure boot enabled" in its log), and SeaBIOS boots it from the DVD and the stick. Also checked by hand in QEMU: GRUB refuses an unsigned kernel ("bad shim signature"), and a key queued by pc-installd's MokNew/MokAuth code is enrolled by MokManager after its password and then shows up in MokListRT.

Updates and patches

An installed system updates from the System updates app: a whole update (kernel, initrd and system) or a small patch for one build, as one signed file, from a file or online. iso/make_update.py builds them; pc-init applies a staged update (showing an update screen) and lays patches over the system. The update keeps the previous system behind the GRUB entry "previous system". The format is in docs/UPDATES.md.

Layout of an install

<partition>/lineage/
    kernel            bzImage
    initrd.img        pc-init
    system.img        or system/ (the image's files extracted)
    system.old.img    previous system after an update (or system.old/)
    data.img          or userdata/ (created on first boot)
    install-<id>.id   written by the installer; GRUB and pc-init find the folder by it
    addons/           add-on images laid over the system (see Google services)
    patches/          patch images for one build, written by System updates
    metadata/pc-logs/ logs of the last three boots: boot-1 is the latest (kernel.txt, logcat.txt);
                      after a kernel panic, the crashed boot's pstore/ holds its last kernel messages
                      (efi_pstore is on; the next boot copies it and frees the firmware's variables)

On UEFI the installer puts shim, MokManager and GRUB in EFI/LineageOS/ on the ESP (shimx64.efi, mmx64.efi, the signed grubx64.efi and the .der from the ISO), adds a UEFI boot entry for shim, and fills EFI/BOOT/ (shim as BOOTX64.EFI, GRUB and MokManager beside it) only when it is empty or ours. On BIOS it writes grub-pc/boot.img to the disk's first sector and grub-pc/core.img before the first partition (a GPT BIOS boot partition, the GPT gap or the MBR gap), and keeps GRUB's modules and menu in pc-grub/ on the install's partition. Every menu lists every install on the computer plus the other systems it finds (Windows, other Linux).

Kernel command line: pc.src=<folder> (default lineage), pc.live=1 (data in RAM), pc.persist=1 with pc.live=1 (data in LineageOS/userdata.img on the stick, see below), pc.previous=1 (boot the previous system), pc.id=<id> (only a folder holding install-<id>.id; the live ISO uses pc.id=live, so a USB stick and an installed system never boot each other), plus androidboot.hardware=pc and firmware_class.path=/vendor/firmware, printk.devkmsg=on (init and apexd lines are not rate limited). The system image or folder must live on a Linux file system (ext4, f2fs, btrfs) when extracted; on NTFS/exFAT use system.img and data.img.

Persistent live USB

The GRUB entry LineageOS (persistent: keep data on the USB stick) keeps apps, settings and files on the stick instead of RAM. The first boot asks the size in GB on the screen (Enter, or 60 seconds without an answer, takes the default: 8 GB or what fits) and creates LineageOS/userdata.img on the partition that holds the ISO: Ventoy's exFAT, or the stick Rufus made in ISO mode (FAT32 holds at most 4 GB). The next boots mount it again without asking. pc-init writes a small empty ext4 from the initrd (build_iso.py keeps only its non-zero blocks), grows the file and then the file system online. A stick written as a disk image (iso9660, DD mode) has no writable partition: that boot keeps the data in RAM and says so.

Linux terminal

Terminal (PcTerminal) runs Linux containers, in the spirit of distrobox: it installs a distribution from images.linuxcontainers.org and opens a shell in it. The root service pc-containerd runs each container in its own namespaces and cgroup. Linux apps of the containers open as windows of their own through PcWayland (Wayland, and X11 through the X11 bundle at /system_ext/pc-x11, built from packages/apps/PcWayland/x11 into out/pc-x11). The details are in the app's README.

  • A container's home is the person's Android storage, and the drives Android sees (USB sticks, SD cards) show under /media, also while plugged in.
  • USB devices and drives (Terminal's USB button): a whole USB device can be shared with a running container (it shows at the same /dev/bus/usb/BBB/DDD, so libusb tools such as flashrom work), and a USB drive Android mounted can be given to a container as a whole disk (/dev/sdX and its partitions, for fdisk, dd, mkfs): Android ejects it first and mounts it again when it comes back, is unplugged or the container stops. Inside a container, file systems mount only through FUSE drivers (ntfs-3g), not with a plain mount.
  • Window buttons: new containers set GTK's title bar layout to minimize, maximize and close (GNOME's default shows only close); a layout the person set stays.
  • The Terminal also opens an Android shell as adb shell gives it; with Rooted debugging on in Developer options it opens as root, as adb shell after adb root.
  • The kernel carries what containers need: namespaces and cgroups, id-mapped mounts on vfat, exFAT, ext4 and ntfs3, System V IPC (Steam, Wine, X11 shared memory), TUN and the bridge, binfmt_misc.
  • device.mk installs PcTerminal, pc-containerd and PcWayland, and the build adds their SELinux policy (BoardConfig.mk). The Connectivity fork keeps the containers' local network access.
  • The image downloads come from the app, over the network, on the first install of a distribution.

The Android Virtualization Framework is still in the build (device.mk inherits packages/modules/Virtualization/build/apex/product_packages.mk; remote attestation is off, and a PC has no pKVM, so only non-protected VMs). terminal/pc-hypervisor.sh runs at post-fs: when the kernel registered the kvm device (VT-x/AMD-V on in the firmware) it sets vendor.pc.kvm, and init.pc.rc then sets ro.boot.hypervisor.vm.supported (and the memory balloon property). terminal/pc-terminal-default-permissions.xml grants the AVF terminal its permissions. Containers do not depend on it.

SELinux is permissive. For enforcing, the services' policy lives in system_ext private policy (SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS), as crosvm and virtmgr need.

System tray: the tray icons of Linux apps (StatusNotifierItem: Steam, Qt, GTK and Electron apps) show left of the status icons, in the top bar or at the taskbar's end in the single bar layout. A click activates the app or opens its menu, a right click (or a long press) opens the menu, the middle button and the wheel go to the app, and passive icons and those past the fifth are behind an arrow. pc-tray in each container's session feeds PcWayland, which SystemUI binds in the person's user (PcWayland's README, "System tray"). Old X11 apps that only know the XEmbed tray show there too, through pc-tray-x11; their menu is the app's own X11 window, so it does not open next to the icon.

First start message

A first start (new user data, the live ISO, or the first boot after an update) takes a while before SurfaceFlinger runs and the boot log starts: the system unpacks the compressed APEXes (apexd, awaited at post-fs-data in init.rc) and compiles ART. pc-init covers that gap from the initrd, before Android's init, with the system's own pc-prepare (bootlog/pc_prepare.cpp): the capybara with a ring turning around it, "Preparing the system", the stage, a bar and the last lines of the kernel's log, where Android's init and apexd write too. In English, Portuguese or Spanish (the update's language after an update, English otherwise).

  • It is a static program, and draws straight on the graphics cards (DRM dumb buffers), on every connected output. The card changes under it: the driver (a module) unplugs the firmware's screen (simpledrm), and pc-prepare opens the new card and goes on.
  • The compositor needs to be the card's master. pc-prepare is master only while a call needs it, stops for good when init starts the compositor (it reads that in the kernel's log) and only writes to its buffers from then on, until the boot animation starts. drm_hwcomposer also tries again for a moment if the card is busy.
  • The picture (bootlog/prepare_scene.*) has no Android or DRM in it. Its images and texts come from bootlog/prepare/make_assets.py; run it after changing a text.
  • pc.prepare=1 on the kernel's command line (edit the GRUB entry with e) shows it on any boot, to look at it.
  • Without the program in the system, or when it cannot draw, pc-init writes the same message as text on /dev/tty0, after putting the console back in text mode: the update screen leaves it in graphics mode, where it draws nothing (this is why the screen was black after an update).

After the first start, the system's compressed APEXes sit decompressed in /data/apex/decompressed. When the system build changes (a staged update, the installer, a new system.img), pc-init notes the build in /data/.pc-apex-build and removes those files before Android starts, so apexd decompresses the new ones; without it a PC stopped at "Starting Android" on every boot after an update.

Not covered: the seconds before it (GRUB loading the kernel and initrd, finding the install folder and mounting the system). The update screen has its own picture.

Boot log

The boot animation is a terminal showing the live log (logcat -b all: kernel, main, system, events), colored by priority, with the time since boot, the current stage, a progress bar driven by the boot_progress_* events and the logo in the corner. It is the native version of the boot log of the HY300 projector build, with the same log model, stages and look: C++ drawing on the CPU into a SurfaceFlinger layer, so the log shows as soon as SurfaceFlinger is up, with no Java VM competing with zygote.

  • bootlog/pc-bootlog.rc overrides frameworks/base's bootanim service with /system_ext/bin/pc-bootlog. SurfaceFlinger starts that service with ctl.start after setting service.bootanim.exit=0, and WindowManager sets the property to 1 and waits for the service to stop before turning the screen on; nothing else changes. The override lives on system_ext because init refuses a vendor file overriding a system service.
  • It runs as user graphics with the log group (logd hands every buffer to that group; no root) in the bootanim domain: sepolicy/private (system_ext private policy) labels the binary bootanim_exec, lets the domain read the log (read_logd) and run the stock animation.
  • The drawing runs in a child process. When it cannot draw (no display, no font, no surface) or dies before the boot asked the animation to leave, the service process runs the stock /system/bin/bootanimation in its place, keeping the pid WindowManager watches.
  • It leaves when service.bootanim.exit goes from 0 to 1 or when boot_progress_enable_screen shows up in the log; it never holds the boot. A 10-minute guard hands over to the stock animation.
  • Text: DroidSansMono glyph strips with ASCII and Latin-1 (bootlog/font/, made on the host by font/make_font.py), 12x22 or 17x32 at an integer scale, picked for about 48 rows on the short side of the screen, or larger on a dense display. 1080p shows a 158x45 terminal. The log and the stage names are decoded as UTF-8, so Portuguese keeps its accents; characters outside Latin-1 show as ?. Stage names in Brazilian Portuguese or English, from persist.sys.locale (ro.product.locale before the user picks one).
  • Logo: bootlog/logo.png, scaled once at boot to a fifth of the short side; the terminal's purple and orange come from it.
  • Settings > System > Boot log (persist.sys.pc.bootlog) turns it off: the stock animation runs instead. So does androidboot.pc.bootlog=0 on the kernel command line. The logs are saved either way.
  • adb shell /system_ext/bin/pc-bootlog --test draws for 15 s over the running system.

The model and the drawing (bootlog_model.*, bootlog_render.*) have no Android dependencies: bootlog/test_bootlog.py builds their gtest suite with the host compiler, using the tree's external/googletest (outside the tree, set ANDROID_BUILD_TOP); in the build it is pc-bootlog-test.

Logs and panics

The logs of the last three boots are in metadata/pc-logs/boot-N/ of the install folder (pc-init writes the kernel log from the start, logcat -b all follows from post-fs-data), readable from the PC's other system, so a boot that never reaches the screen is still logged. They belong to the system group, so Diagnostics > Logs > Save logs puts them in its zip (boots/), after the next good start. A kernel panic shows the "pc" screen (kernel/patches/0007: the reason in plain words, the function it happened in, the process, the computer, the last kernel messages in colors and a capybara in ASCII when there is room) and is kept: efi_pstore is on, and the next boot copies /sys/fs/pstore to the crashed boot's pstore/ and deletes it. On the live ISO the logs go to a folder on the stick's partition.

Debugging a real PC

Most PCs have no serial port, so the GRUB entry LineageOS (debug: adb over network) turns adb on over TCP 5555 from boot (androidboot.pc.adb=1, handled in rootdir/init.pc.rc), without opening Settings. Every installed system's GRUB menu has its own adb entry; otherwise press e on an entry and add androidboot.pc.adb=1 to the linux line. Then, from another computer on the same network:

adb connect <PC address>:5555
adb logcat

The first connection shows the usual prompt on the PC's screen to allow the computer's key.

Surface devices

Microsoft Surface PCs need drivers and quirks that upstream Linux does not have yet. kernel/build_kernel.sh applies them from linux-surface, through our fork mateusseiboth/linux-surface (external/linux-surface), using its patch sets for the kernel's version (patches/7.2): the IPTS and ITHC touch screens and pens (the raw data goes to iptsd), Marvell Wi-Fi and Bluetooth quirks, the Surface Aggregator's RTC and devices, buttons, Type Cover, shutdown and GPE quirks, Surface 3 and Surface Laptop 4 AMD fixes, and ath10k's board file options. They only act on Surface hardware, and kernel/pc.config builds the drivers they add as modules. Two sets are left out: secureboot (its NX revert changes nothing with CONFIG_EFI_DXE_MEM_ATTRIBUTES, and Android does not hibernate) and cameras (there is no camera HAL for IPU3, and it changes ACPI device enumeration on every PC).

The volume buttons of the Intel HID 5-button array (Surface Go and Pro, other tablets) repeat while held: kernel/patches/0009 reports the release the firmware sends instead of a whole key stroke on the press, once the array has sent a release, and lets the keys go before a suspend (#63).

Surface keyboard covers (Type Cover) are classified as alphabetic keyboards by a patch in patches/frameworks/native; the kernel's Intel VMD is built in (CONFIG_VMD), so the initrd finds an NVMe disk behind Intel RST on Surface, Dell and HP laptops. The Go 2 and Go 4 accelerometer and light sensor should work through the sensors HAL below (not yet confirmed on those devices).

Marvell Wi-Fi (mwifiex: every Surface Pro 3 to 7, Surface Book, Surface Laptop 1 and 2) names its interface wlan0 here, not mlan0 (kernel/patches/): Android's Wi-Fi only uses wlan0.

The Surface Pro 7's built-in microphones are DMICs behind the DSP, and its NHLT table is empty, so the kernel would leave the audio controller to legacy HDA (no microphone). A kernel patch (kernel/patches/) picks SOF for it by DMI and sets two DMICs. rootdir/pc-audio.sh then finds the card's DMIC capture PCM and sets vendor.audio.mic.alsa (CARD_0_DEV_6); the audio HAL patch in patches/hardware/interfaces opens that PCM for the built-in microphone (any SOF card gets it), instead of the headset's on device 0. pc-mixer turns on the DSP microphones' Dmic0 Capture Switch, which starts off on SOF cards (the level stays as the topology sets it).

Touch screen and pen (iptsd)

On the Surface Pro 4 to 7 and Surface Book 1 to 3 (IPTS) and later models with ITHC, the kernel only delivers raw touch data (heatmaps and stylus reports) on a hidraw node. linux-surface's iptsd, built from our fork mateusseiboth/iptsd (external/iptsd, branch lineage-pc), turns it into multitouch and stylus events through uinput: InputReader sees IPTSD Virtual Touchscreen and IPTSD Virtual Stylus as touch screens of the built-in display (INPUT_PROP_DIRECT, a virtual bus), so no .idc file is needed.

At boot touch/pc-iptsd.sh checks whether the PC is a Surface (DMI vendor), then runs iptsd-check-device on every hidraw node and sets vendor.iptsd.touchscreen (or vendor.iptsd.touchpad) to the node it finds. It keeps running (every 3 seconds): after a suspend the MEI bus resets and IPTS comes back under a new hidraw name, so a node that is gone is dropped and the new one is handed over (iptsd follows IPTS after a resume). The nodes are only checked again when the list of HID devices under /sys/bus/hid/devices has changed, and for ten rounds after that (and once every ten rounds as long as no node is found). A node it has not seen before keeps the PC awake for 15 seconds (a wake lock with a timeout, once per node): iptsd switches IPTS to its multitouch mode as it starts, and a suspend attempt in the middle left the touch screen dead until the next resume (#61). touch/pc-iptsd.rc (re)starts iptsd-touchscreen (or iptsd-touchpad) on every change, as the system user (the hidraw nodes and /dev/uinput are system's), in the iptsd SELinux domain. Other PCs skip it at once. Device presets come from /vendor/etc/iptsd/presets; a .conf file dropped in /data/vendor/iptsd tunes a device without a new build (options in /vendor/etc/iptsd/iptsd.conf). iptsd logs to logcat as iptsd.

Hardware support

  • Processor: Android's x86_64 build needs SSSE3, SSE4.1, SSE4.2 and POPCNT (Intel Core 1st generation or newer, AMD Bulldozer or Jaguar or newer). A Core 2 starts the kernel and then panics when init meets an unknown instruction (Attempted to kill init! exitcode=0x00000004).
  • Sensors (sensors/, android.hardware.sensors-service.pc): the kernel's IIO devices, found by their channels. An accelerometer (with the mount matrix) makes Auto-rotate work on tablets and convertibles (WindowManager does not fix the rotation of a PC that has an accelerometer; one without keeps the rotation the user chose), and a light sensor feeds adaptive brightness (config_automatic_brightness_available and a lux curve in vendor/pc/ui's framework overlay; Settings offers Adaptive brightness only on a PC with a light sensor, #93). A PC without them lists no sensors. When the driver or ACPI gives no mount matrix, or a wrong one, persist.vendor.pc.sensors.accel_mount_matrix sets it in the sysfs file's format (x1, y1, z1; x2, y2, z2; x3, y3, z3, finite numbers), e.g. setprop persist.vendor.pc.sensors.accel_mount_matrix "0, 1, 0; 1, 0, 0; 0, 0, 1" swaps x and y; the HAL reads it when it starts. An invalid value is logged and ignored.
  • Memory cards and internal eMMC: rootdir/fstab.pc lists /devices/*/mmc_host/* for card readers, and an internal eMMC sits under the same path, so a sysfs pattern cannot tell them apart (#85: vold partitioned the disk the PC runs from). Our system/vold patch (patches/system/vold) ignores a disk when its /sys/.../device/type is not SD (an eMMC is MMC), when it is an mmcblk*boot0, boot1 or rpmb, or when it is the disk behind /mnt/src, /metadata or /data (the running install, also a USB stick). Real SD readers keep working on every PC.
  • Touchpad calibration: touch/idc/ holds IDC files that device.mk installs in /vendor/usr/idc/. Vendor_04f3_Product_009a.idc (Elan I2C touchpad of the Acer Chromebook Spin 11 R751T, #86) lowers libgestures' tap pressure threshold, because the pad reports pressure 5 to 18 on a light tap. Only the tested device has one.
  • Tablet mode (#119): on a PC with a touchscreen, a switch in Settings > System and a quick settings tile turn it on and off. A 2-in-1's tablet mode switch (SW_TABLET_MODE) turns it on when the screen folds back and off when it unfolds, also when that happened while the PC was off. While it is on, the built-in keyboard, touchpad and pointing stick are disabled and hidden from apps (games such as Call of Duty Mobile then show their touch controls) and the on-screen keyboard shows; USB and Bluetooth keyboards and mice keep working. Built-in means what Android calls internal: not on USB or Bluetooth, or an IDC file with device.internal = 1 (the way to mark a laptop keyboard that sits on an internal USB bus). The device that reports the fold or the lid is never disabled, and without a touchscreen nothing is. The state is Settings.Global pc_tablet_mode and survives restarts; PcTabletModeController in frameworks/base does the work and dumpsys input lists the devices it disabled.
  • Bluetooth: the stack starts the profiles a PC needs (A2DP source, AVRCP, HFP, HID host, GATT, OPP, PAN); LE Audio is off. Controllers without Low Energy work, and the default HAL no longer spins on short rfkill reads.
  • Wi-Fi: nl80211 without a vendor HAL; the framework adds wlan0 (Marvell's interface is renamed to it). P2P is off on wlan0 (wifi/wpa_supplicant_overlay.conf): on adapters without a dedicated P2P device (ath9k, mwifiex, most USB adapters) the supplicant would otherwise register wlan0 as its P2P interface and the framework could not add the station. wifi/pc-radios.sh turns Wi-Fi back on when a laptop's Wi-Fi key lifts the radio's hard block (Android does not follow rfkill) and restarts the supplicant. rootdir/pc-drivers.sh unblocks radios another system left blocked and loads the modules drivers ask for by name (pc-modprobe.sh).
  • Broadcom Wi-Fi: every family Linux can drive is in the image, each PCI id with exactly one driver. brcmfmac (PCIe, SDIO, USB; the firmware, NVRAM and CLM files of brcm/ and cypress/ come from linux-firmware), brcmsmac (BCM4313, 43224, 43225, 43227, 43228) and b43/b43legacy (BCM4306, 4318 and older, with the open OpenFWWF firmware) are in-tree modules. Broadcom's wl (broadcom-sta) is built out of tree by kernel/build_wl.sh for the cards nothing else runs: the 802.11ac BCM4352 (14e4:43b1, Dell DW1550) and BCM4360 (14e4:43a0, MacBooks), BCM4331, BCM43142, and the ssb BCM4311, BCM4312, BCM4321 and BCM4322, whose b43 firmware cannot be shipped. wl runs in its cfg80211 mode, names its interface wlan0, and lists only its own PCI ids; kernel/patches/0011-* takes those ids away from the bcma and ssb bridges, which otherwise bind the card and leave it without a driver (#99). wl reports its scan results without the time it saw them, and Android drops results with no time as older than the scan: kernel/patches/0015-* makes cfg80211 stamp them when they arrive (#99). The tarball is downloaded from Broadcom and checked against its SHA-512 (it is never stored in git), and patched with external/broadcom-wl. Not shipped: b43's own firmware (Broadcom's license does not let it be redistributed), Apple's firmware for the T2 parts (BCM4377, 4378, 4387) and the NVRAM files named after a board with a space in its DMI name (Android's build cannot copy them). License of wl: Broadcom's Software License Agreement (lib/LICENSE.txt in the tarball, shipped as /vendor/etc/licenses/broadcom-wl/LICENSE.txt) lets anyone distribute the software "complete, unmodified and only for use with a Broadcom Product", under that agreement and with a copy of it, and makes the distributor defend and indemnify Broadcom against third-party claims. The module is proprietary (MIXED/Proprietary taints the kernel); the wrapper around it only carries open patches.
  • Audio: pc-audio.sh makes the first analog card card 0 and raises its levels; HD Audio capture uses a 48 kHz stereo profile with the capture unmuted; SOF cards (Surface Pro 7) get their DMIC microphones, and Intel AVS cards (Chromebooks) their speaker card and DMIC (#59). Recordings no longer stutter: the audio HAL stopped pacing capture like the emulator and reads the sound card one period at a time (patches/hardware/interfaces/0005 and 0006, #72). An AVS volume control starts at its maximum: the DMIC topology's DMIC Volume started at 0 and the microphone recorded silence (kernel/patches/0013, #59). The kernel skips HD Audio jack events of a codec without a driver, which panicked a PC that restarted right after boot (kernel/patches/0010, #80).
  • Slow drivers: kernel/modules.blocklist keeps modules whose probe takes seconds out of ueventd, which loads one module at a time and makes no device node meanwhile; rootdir/pc-slow-modules.sh loads them in the background. hp-wmi took 2 s on an HP Pavilion x360, long enough for apexd to give up and Android to reboot in a loop (#80).
  • Camera: USB webcams through the external camera HAL; minigbm aligns NV12 and YV12 strides, and the camera HAL's SELinux policy finds the gralloc allocator and mapper. camera/media_profiles_V1_0.xml gives webcams 100 to 107 a 640x480 recording profile at 30 fps (H.264 and AAC), which a camera app's video mode needs; CameraX builds 720p and 1080p from it on a webcam that has those sizes. The webcam HAL also lists each frame rate as a fixed range (patches/hardware/interfaces/0004): CameraX apps such as Aperture only offer video at a fixed rate, and crashed in video mode without one (#72).
  • Video: Codec2 through the AIDL HAL (media.c2.hal.selection=aidl) and a seccomp addition for Mesa in media.swcodec. The video engine of the GPU decodes H.264, HEVC, VP8, VP9 and AV1 and encodes H.264 (codec2/, VA-API, no copies); apps get it first, except AV1 (its 10-bit streams are not decoded), and the software codecs stay. Tried on a Ryzen 5600G only. setprop persist.vendor.pc.hwvideo 0 turns the video engine off (only the software codecs stay), at once and after restarts. An encoder's input surface (screen recording) comes from the framework (debug.stagefright.c2inputsurface=-1): there is no OMX to ask for it. A multi-touch screen is declared on every PC (with faketouch), so the Play Store lists the apps and games that require one; the key mapper plays their touches from the keyboard and mouse.
  • Mobile data and GPS (modem/): the LTE/GNSS modem built into many business laptops (Dell DW5829e and DW5820e, Lenovo, HP and Foxconn T77W968 and the other Qualcomm X20/X55 modules, Sierra EM7xxx, Quectel EM12). One root daemon, pc-modemd, owns the modem, because two processes on /dev/cdc-wdmN would fight over MBIM transactions. It finds the modem in sysfs (a USB device with a cdc_mbim or qmi_wwan interface, its cdc-wdmN, wwanN and serial ports, or the kernel's wwan class), and then:
    • Data: our own MBIM client (no libmbim) opens the device, reads its capabilities, checks the SIM (no SIM or a PIN-locked one only shows in Settings, quietly), turns the radio on, registers, attaches, connects with the APN (empty first, so the modem and the SIM choose; then the APNs provisioned on the SIM), reads the IP configuration and puts the addresses and MTU on wwan0 (rtnetlink). It reconnects when the network drops. PcModem (a system app) registers a NetworkAgent for wwan0, so Android gets a metered cellular network with routes, DNS and validation. A NetworkAgent was picked over Ethernet because EthernetTracker runs DHCP on the interface (the modem has none) and cannot take an address that changes at every connection. Only MBIM modems get data; a qmi_wwan modem gets GPS only.
    • GPS: android.hardware.gnss-service.pc (AIDL android.hardware.gnss V7, minimal: start and stop, a location from RMC and GGA, satellites from GSV and GSA, the NMEA callback; the extensions report unsupported) asks the daemon for the engine over /dev/socket/pc_modemd and reads NMEA back. The daemon tries these ways to start the engine in order until NMEA arrives (modem/daemon/Gps.cpp, kStrategies), logging each attempt: QMI LOC over MBIM (NMEA reports; the sentences come as QMI indications and usually on the NMEA port as well; first, because a Qualcomm modem's NMEA port streams empty sentences while its engine is off), a serial port that already streams NMEA, AT commands for Quectel (AT+QGPS=1), Sierra ($GPS_START written to the NMEA port), Fibocom, Telit, SIMCom, u-blox, and the AT$GPS=1 and AT+GPS=1 variants.
    • Settings: Network & internet > Mobile data: the switch (persist.sys.pc.modem.enabled), the APN (persist.sys.pc.modem.apn, empty for automatic), the modem's state and the GPS state. The entry shows only where the daemon found a modem.
    • Diagnostics: everything the daemon tries and gets goes to logcat with the tag pc-modemd (the GNSS HAL uses pc-gnss, the app PcModem), so the Diagnostics app's log zip shows where it stopped. adb shell pc-modemd --probe prints the same report (device capabilities, SIM, radio and registration state, the IP configuration, each GPS strategy and its result, the first NMEA lines); it runs a GPS test of up to 100 seconds. pc-modemd --report prints the log kept since the daemon started, without the test. The kernel side (cdc_mbim, qmi_wwan, option, qcserial, wwan, cdc-wdm) is already built as modules.
  • Displays: drm_hwcomposer opens every DRM card; the internal screen paces SurfaceFlinger on two screens.
  • Wake-ups: rootdir/pc-wakeup.sh stops touchpads and wired network cards from waking a sleeping PC; a closed laptop wakes only from the power button or lid. A closed lid keeps a docked laptop awake. A wake alarm (the lock screen's lock after timeout, a sync) wakes the PC without turning the screen on: the power button's KEY_WAKEUP after a resume goes out only when something else than the clock woke it (kernel/patches/0016-*).

Tested devices

What people reported on real PCs up to 2026-12-03, with releases up to 20261203-1052. The newest report of each device counts.

✅ works, confirmed on that device | ⚠️ works in part, see the notes | 🔧 a fix was made, not confirmed on that device yet (it may only be in the next ISO) | ❌ does not work | n/a the PC has none | · not reported

Device Boot Display Video Wi-Fi BT Sound Mic Camera Touch / pen Keyboard / touchpad Sensors Suspend Battery Secure Boot Issues
Dell Inspiron N5110 (i5-2430M, HD 3000 + GT 525M) ⚠️ ✅ · ❌ 🔧 · · · · ⚠️ · · · · #1
Dell Latitude 7490 (i7-8650U, UHD 620) ✅ ✅ ✅ · · ✅ · · · · · ⚠️ · · #3, #4, #5
Dell Vostro 3420 (i5-1235U, MX550) ⚠️ ✅ ✅ ✅ ✅ ✅ ⚠️ 🔧 · ✅ · ✅ ✅ ✅ #27
Dell Latitude 7420 and 7440 (Snapdragon X20 LTE, DW5829e) ✅ · · · · · · · · · · · · · #94
Dell laptop with Cirrus CS8409 audio (Intel 12th gen) ✅ ✅ · · · · 🔧 ✅ · · · · · · #72
Dell XPS 15 9575 2-in-1 (i7-8705G, Radeon RX Vega M GL) ❌ · · · · · · · · · · · · · #55
HP 255 15.6 G10 (Ryzen 5 7520U, Radeon 610M) 🔧 ✅ · ❌ 🔧 · · · · · · · · · #12
HP 14s (14s-cf3062tu) ✅ ✅ · · · · 🔧 🔧 · ⚠️ · · · · PcDiagnostics#1
HP Chromebook x360 11 G2 EE (Celeron N4000, UHD 600) ✅ ✅ ✅ ✅ · ✅ · ✅ ✅ ⚠️ · ✅ ✅ · #84
HP Pavilion x360 14-dh0 (UHD 620) ✅ ✅ · · · · · · · · · · · · #80
Lenovo IdeaPad (Ryzen 7 5700U) ✅ ✅ 🔧 ✅ ✅ · · ❌ · · · · · · ·
Lenovo E73z (4th gen Core i5) ✅ ✅ · ✅ ✅ · · ❌ · · · · · · #9
Lenovo ThinkPad E15 Gen 4 (Intel) ✅ ✅ · ❌ · · · · · · · · · · #2
Acer Nitro (Radeon Renoir/Cezanne + NVIDIA GA104) ✅ ✅ 🔧 · · · · · · · · · · · #25
Acer Aspire S5-391 ✅ ✅ · ✅ · · · · · · · · · · #33
Acer Chromebook Spin 11 R751T (Celeron N3350, HD 500) ✅ ✅ 🔧 · ✅ ✅ ❌ · · 🔧 · · · · #59, #86, #90, #91, PcLogin#1, PcInstaller#1
Apple MacBook Pro 7,1 (Core 2 Duo P8600) ❌ · · · · · · · · · · · · · ·
Asus X102B (AMD A4-1200, Radeon HD 8180) ❌ · · · · · · · · · · · · · #32
Chuwi UBook Pro (Celeron N4100) ✅ ✅ · · ✅ · · · · ⚠️ · · · · #38
Laptops with an Intel Celeron N4020 and an Intel N95 ✅ ✅ · · · · · · · · · · · · #95
Desktop, i7-7700K + Radeon RX 5500 XT ✅ ✅ · · · · · · · · · · · · #11
Desktop, Gigabyte A520M K V2 (Ryzen 5 5600G, Radeon Vega, ALC897, RTL8111), two monitors ✅ ✅ ✅ n/a n/a ✅ ✅ n/a n/a ✅ n/a ⚠️ n/a · ·
Desktop, Gigabyte B550M AORUS ELITE (Ryzen 7 5800X, Radeon RX 7600, ALC897, RTL8111) ✅ ✅ ✅ n/a n/a ✅ ✅ n/a n/a ✅ n/a ✅ n/a ✅ ·
Fujitsu Arrows Tap Q739 (i5-8365U, UHD 620, Intel AC9560) ✅ ✅ ✅ ⚠️ ✅ · · · ✅ · ✅ · · · #78
Intel tablet with a BOE 1920x1280 panel and a light sensor ✅ ✅ · · · · · · · · ✅ · · · #93
Microsoft Surface Pro 5 ✅ ✅ · ❌ · · · · ⚠️ ⚠️ · · · · #10
Microsoft Surface Pro 7 (i7-1065G7) ✅ ✅ · ✅ · ✅ ✅ · ✅ ✅ ⚠️ ✅ 🔧 · #28, #29, #30, #31
Microsoft Surface Go 2 ✅ ✅ · 🔧 ✅ 🔧 · · ✅ ✅ 🔧 · · · #2, #18, #24
Microsoft Surface Go 4 (Intel N200) ✅ ✅ 🔧 ✅ · · 🔧 ❌ ⚠️ ✅ 🔧 · · ✅ #16, #17, #18, #19, #20, #21
Microsoft Surface Laptop Go 2 ✅ ✅ ✅ ✅ ✅ ✅ · ✅ ✅ ✅ · ✅ ✅ · #48
VMware Workstation 16 (3D acceleration on) ✅ 🔧 · · · · · · · ⚠️ · · · · #7, #22
QEMU/KVM (virtio-vga-gl, OVMF) ✅ ✅ ⚠️ · · · · · · · · · · ✅ ·

Notes:

  • Dell Inspiron N5110: needs nouveau.modeset=0 in GRUB; an install on its MBR disk only started with the USB stick plugged in. Wi-Fi (Atheros) starts after Fn+F2 and clearing the supplicant's wlan0 socket by hand, then the kernel panics seconds after connecting. Bluetooth turns on and pairs, but audio did not connect (the profiles are in the next ISO). The ALPS touchpad is shaky. USB tethering works.
  • Dell Latitude 7490: sleeps from the lid and the power button with the SD card reader disabled in the firmware setup; with it on, the reader wakes the PC.
  • Dell Latitude 7420 and 7440: their LTE modules (DW5829e, Snapdragon X20) also carry GPS/GNSS, which Android does not see; logs asked for.
  • Dell laptop with Cirrus CS8409 audio: on 20261202-1919 the camera records video (a crash fixed there) and the microphone stuttered in every app. Two audio HAL fixes followed: the first, as a patch, removed the silence the service inserted; the second (reading the card one period at a time) is in 20261203-1052, not confirmed.
  • Dell XPS 15 9575: stays on the black "preparing Android" screen, also in safe graphics; logs asked for.
  • Dell Vostro 3420: the installed system starts with "SATA Operation: RAID On" (Intel VMD), fixed in 20261130-0804. Some starts only flash the screen and need another try. From a Ventoy stick, the normal mode panics in Ventoy's own boot script (Comm: sh, exit code 127); the GRUB2 mode starts. The Iris Xe draws, not the MX550. The microphone records with stutter. Suspend works, with the lid and the power button. The camera did not work; its fix is in 20261130-1450. There is no fingerprint reader support.
  • HP 255 G10: the starts after the first one hung at "Starting Android" until userdata/apex/decompressed was renamed by hand; the next ISO does it. Wi-Fi is a Realtek RTL8852BE. Ethernet works.
  • HP 14s: installed on ext4, on 20261128-1800. The built-in microphone (ALC236) and the webcam were not found; the fixes are in 20261130-0804 and 20261130-1450. Ctrl+Space changes the language of the on-screen keyboard only. The System update entry in Settings opened the Play services screen (fixed in 20261130-1450).
  • HP Pavilion x360 14-dh0: rebooted in a loop during boot (HP WMI driver, then an HD Audio panic during the reboot); the hp-boot patch fixed it, confirmed after several restarts, and both fixes are in 20261203-0803.
  • HP Chromebook x360 11 G2 EE: 20261201-2051 (Google apps edition). The touchpad registers input only when pressed, not on a light touch.
  • Lenovo IdeaPad: brightness works too. Video restarted the screen before 20261128-1800 (YV12 on Radeon). The integrated webcam is seen by the kernel, but no app finds a camera.
  • Lenovo E73z: windows went white when a text field was clicked, and copying files from a phone over USB stopped; there were no logs, and the report was closed.
  • ThinkPad E15 Gen 4: the report does not say which ISO it was.
  • Acer Nitro: video restarted the screen on 20261128-1319, fixed in 20261128-1800. The Radeon draws.
  • Acer Aspire S5-391: Wi-Fi stayed off before 20261130-0804, which fixed it. USB tethering works.
  • Acer Chromebook Spin 11 R751T: on 20261201-2051 the speakers (Intel AVS, MAX98357A) play; the built-in microphone recorded silence on 20261203-1052 (its gain started at 0, fixed in the next version). Hardware video showed green stripes on 20261201-2051; the Intel video fixes came in 20261202-1346, not confirmed there. Picking a user right after boot looped (fixed in 20261203-0803), Guest crashed the login screen and the first user had no System updates entry (fixed in 20261203-1052).
  • Apple MacBook Pro 7,1: the Core 2 Duo has no SSE4.2, so init stops at its first such instruction (see Hardware support, Processor). Not supported.
  • Asus X102B: black screen; logs attached, not analyzed yet.
  • Chuwi UBook Pro: updated from 20261128 to 20261130-1450 with the System updates app. The firmware reports the built-in keyboard with none attached, so the on-screen keyboard stayed hidden; Show on-screen keyboard (Settings > System > Keyboard, 20261130-1450) is there and the setting makes it show. The touch screen (Goodix GXTP7386) and its stylus are listed, not reported in use. A Bluetooth keyboard pairs on 20261130-1450 (#40).
  • Laptops with a Celeron N4020 and an N95: high CPU use while idle, logs asked for; the network manager crashed at start on 20261203-0803 (fixed in 20261203-1052). Some Key Mapper text was black in dark mode.
  • Desktop with the RX 5500 XT: typing in windows left them blank until an update fixed it.
  • Desktop with the A520M K V2: our own test PC, installed to disk and updated with the System updates app. The picture lagged on the HDMI monitor with two monitors connected; version 20261127-1835 was reported fine. On that version it sleeps (deep) and wakes up again by itself: 339 sleeps in two and a half days. On 20261130-0804, YouTube plays, Steam (Flatpak) opens its sign-in window and the remote desktop server works. It then updated to 20261130-1306 and started at once; the on-screen keyboard patch works there.
  • Desktop with the B550M AORUS ELITE: our own PC, on 20261128-1800, one monitor on DisplayPort. Sound works on the ALC897 and over HDMI/DP, and so do Ethernet and a USB keyboard and mouse.
  • Fujitsu Arrows Tap Q739: on 20261201-2051, video plays right with the Intel video patch. Wi-Fi (Intel AC9560) drops while a video plays and goes away while Bluetooth is in use. The network manager crashed at start on 20261203-0803; the net-root patch fixed it, confirmed. Root did not work for other apps (fix pending).
  • Intel tablet with a BOE 1920x1280 panel: adaptive brightness shows in Settings and follows the room's light on 20261203-0803.
  • Surface Pro 5: touch works, but light touches open the search; the pen was not tested. Wi-Fi turns itself off on 20261128-1800, also with a USB adapter. The Type Cover types; dragging with its touchpad does not work.
  • Surface Pro 7: on 20261130-0804, touch keeps working after a suspend, the built-in microphone records, the Type Cover counts as a keyboard and the apps no longer crash when the on-screen keyboard opens. The accelerometer works; the screen only rotated after wm fixed-to-user-rotation disabled, and the battery percentage only showed after turning its switch off and on (both fixed in 20261130-1450, not confirmed). It has no light sensor. The pen was not reported. Brightness works. After one update GRUB stopped at "kernel is too small" (#36).
  • Surface Go 2: the pen (with hover) and the touchpad work. Wi-Fi was confirmed with the reporter's own fixes, and they also made fixes for sound and brightness; the released ones were not confirmed. One kernel panic without logs.
  • Surface Go 4: touch works, the pen was not reported. The taskbar is missing with the default boot entry and shows with the adb debug entry (#21, open). The cameras need a libcamera HAL. The front sensor's "stream stop time out" (OV5693 behind an IPU6, also in the Surface Pro 7+ and Pro 8) has a fix in kernel/patches/0008, not tested yet.
  • Surface Laptop Go 2: multi-touch, the hotkeys, the lid, sound and the camera work, and the battery lasts well. Videos play well in the YouTube app, the browser and from files. In Call of Duty Mobile the touch screen counts as an external controller (touch works, its on-screen controls hide), and the game stutters for about a minute when the CPU slows down from heat.
  • VMware: the screen stays black up to 20261128-1800. The fixes were checked by their author on a patched ISO, with mouse and keyboard, and are in 20261130-0804, which also switches VMMouse to a relative mouse, so the .vmx needs no change. VirtualBox's VMSVGA uses the same driver (vmwgfx and svga).
  • QEMU/KVM: our own test VM. Video can freeze the screen with virgl. Without KVM, or with a CPU model without SSE4.2, the kernel panics at the start of Android. VirtualBox was not tested.
  • USB webcams: on a PC with a Radeon (model not given), the preview and photos work on 20261130-0804 with /dev/video* opened by hand; 20261130-1450 opens it. Recording video in the camera app does not work: the image has no media profiles (#15).

To add or correct a device, open an issue with the model, the ISO and the logs (see Logs and panics).

Battery

android.hardware.health-service.pc (health/) is AOSP's default health HAL with two changes for ACPI batteries. It reads the battery every minute while the PC is awake (a timer that does not wake it from sleep): many laptops' firmware sends no event when the charge changes, and the level stayed up to 10 minutes behind. For batteries that report energy and power only (energy_now, power_now), it works out the charge and the current with the battery's voltage, so Settings and battery usage see the real capacity instead of a few mAh.

Power

android.hardware.power-service.pc (power/) is the device's IPower (AIDL V7), in place of AOSP's example, which did nothing. It runs as root without capabilities in its own domain, hal_power_pc. Every knob is optional: what a PC does not have is skipped.

Profiles, chosen in Settings (persist.sys.pc.power.profile, balanced when unset) and applied to every CPU policy's energy_performance_preference (intel_pstate, amd-pstate) and to /sys/firmware/acpi/platform_profile:

Profile EPP Platform profile
balanced balance_performance (or default) balanced
saving power (or balance_power) low-power (or quiet, cool)
performance performance performance (or balanced-performance)

On an Intel hybrid CPU the performance cores and the efficient cores get their own EPP (a policy that covers only one kind; the kinds come from /sys/devices/cpu_core/cpus and cpu_atom/cpus, or from cpuN/cpu_capacity when there are exactly two values; any other policy keeps the value in the table). Each pick comes from the policy's energy_performance_available_preferences, falling back to the table's value. Ideas from the CapivaOS phase 1 policy package shared on Reddit.

Profile Performance cores Efficient cores
saving power power
balanced on battery balance_power power
balanced on AC balance_performance balance_power
performance performance balance_performance

Android's battery saver (Mode::LOW_POWER) switches to saving and back to the chosen profile. It is the only mode the HAL reports as supported, and only when saving changes something; boosts and hint sessions are unsupported.

On battery (no Mains supply online; a PC without a battery is always on AC), checked at start and on every power_supply uevent:

Knob On battery
/sys/module/pcie_aspm/parameters/policy powersupersave (or powersave)
/sys/bus/usb/devices/*/power/control auto, except HID (keyboards, mice, touchpads) and audio; Bluetooth adapters too, but on while a Bluetooth keyboard or mouse is connected (an input device under uhid)
/sys/class/scsi_host/host*/link_power_management_policy med_power_with_dipm
/sys/module/snd_hda_intel/parameters/power_save, power_save_controller 1, Y
/sys/bus/pci/devices/*/power/control auto
/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost 0 in the saving profile and the balanced profile on battery; the value found before the first write in the others (never turned on if it was off). Ideas from the CapivaOS phase 1 policy package shared on Reddit
/sys/devices/system/cpu/cpuidle/intel_c1_demotion (intel_idle, CPUs that support it) same as above: 0 while saving, the value found before the first write otherwise

The value those two held is also kept in vendor.pc.power.hwp_boost_original and vendor.pc.power.c1_demotion_original, set just before the HAL's first write. They last until reboot, like the kernel's state, so a HAL that died while saving (crash, kill -9) gives back the real value on its next start instead of taking the 0 it left as the original. A reboot resets both the kernel and the record. No persist property or file is needed, so the sepolicy only gained the two names and a get_prop for the HAL.

Intel GPU frequency cap: the profiles cap the GPU's maximum frequency, as a percentage of its factory maximum (RP0, read only, so a cap left by a HAL that died is never taken for the original) and never below its minimum: saving 75% on battery and 82% on AC, balanced 90% on battery, 100% (RP0) otherwise. A GPU that shows no RP0 falls back to the maximum found at start. The GPU is the DRM card whose PCI vendor is 0x8086, not assumed to be card0. i915 uses gt/gtN/rps_max_freq_mhz and rps_RP0_freq_mhz (or gt_max_freq_mhz and gt_RP0_freq_mhz beside the card), xe uses tileN/gtN/freq0/max_freq and rp0_freq of the PCI device. The HAL puts RP0 back when it stops (SIGTERM) and on the next start. To check it: logcat -s PowerPcGpuCap shows each value written, and getprop vendor.pc.power.gpu_cap shows the cap in effect (card0:i915:75; 100 is no cap). Ideas from the CapivaOS phase 1 policy package shared on Reddit.

On AC each knob gets back the value it had before (the kernel's), so a PC that never runs on battery is never touched. If the HAL restarts while on battery, AC gets default, on, max_performance, 0 and N instead (vendor.pc.power.battery_tuned tells it). Devices plugged in on battery get the battery values too. Wi-Fi power save is left to the framework and wpa_supplicant: nl80211 needs CAP_NET_ADMIN, which a HAL other than Wi-Fi may not have.

Charge limit (persist.sys.pc.power.charge_limit: a percentage, 0 charges to 100% again, unset leaves the firmware as it is): charge_control_end_threshold on each battery, with charge_control_start_threshold 5 below where it exists (ThinkPad, Dell, Huawei...) and Dell's charge_types switched to Custom; machines with only a fixed cap use charge_types Long_Life or IdeaPad's conservation_mode (about 60%).

Processor and cooling, in Settings > System > Power when the PC has them:

Choice Property What it writes
Turbo persist.sys.pc.power.turbo (1, 0; unset leaves the firmware's) intel_pstate/no_turbo, or cpufreq/boost (acpi-cpufreq, amd-pstate)
Idle states persist.sys.pc.power.cstates (all, light, shallow) cpuN/cpuidle/stateM/disable for states whose exit latency is over 200 us (light) or 2 us (shallow)
Power limits persist.sys.pc.power.pl1_ac, pl1_battery, pl2_ac, pl2_battery (watts; 0 is the firmware's) ASUS asus-armoury ppt_pl1_spl and ppt_pl2_sppt, else Intel RAPL's package constraint_0 (long term) and constraint_1 (short term); the value follows the power source
Fan curve persist.sys.pc.power.fan_curve (auto, quiet, cool) asus_custom_fan_curve's eight points per fan and pwmN_enable (1 ours, 2 the firmware's), again after every profile change

Properties the HAL sets for Settings: vendor.pc.power.turbo, .cstates, .fan_curve (1 when the control exists), vendor.pc.power.pl1 and .pl2 (min,max in watts), .pl1_firmware and .pl2_firmware (the limits found at boot, which the default writes back), vendor.pc.power.profiles (the profiles this PC can apply, comma separated, empty without EPP or platform profile), vendor.pc.power.charge_limit (1 when a limit can be set) and vendor.pc.power.charge_limit_fixed (the fixed cap, when that is all there is). SELinux: pc_power_settings_prop (system_ext public, set by system_app) and vendor_pc_power_prop (vendor).

Kernel tuning

Changes taken from CachyOS for memory and scheduling, one at a time (#98): each has its own config fragment in kernel/config.d/ (merged after pc.config and checked like it), its own block in rootdir/init.pc.tuning.rc, and its own kernel patch when it needs one, so it can be measured and reverted on its own. None of them changes the CPU baseline: the kernel still starts on every x86_64 CPU.

zram: compressed swap in RAM, half the RAM's size, compressed with zstd (kernel/config.d/zram.config, rootdir/fstab.zram). Before, the kernel built zram as a module and nothing set up swap: lmkd killed cached apps as soon as RAM ran out. Now their memory is compressed first, which matters most on the 4 GB PCs. zram is built in, so /dev/block/zram0 exists when init runs swapon_all at late-fs. cat /proc/swaps shows it.

BORE (Burst-Oriented Response Enhancer, kernel/patches/0100, kernel/config.d/bore.config): EEVDF with a burst score per task, so a task that runs in short bursts (an app's UI thread, input) keeps its place ahead of one that holds the CPU for long stretches (dex2oat, a build in the Linux terminal). On a Ryzen 5 5600G it took the p90 scheduling latency under load from 1430 µs to 55 µs (#98). echo 0 > /proc/sys/kernel/sched_bore (root) turns it off until the next boot, for an A/B on one kernel.

MGLRU (kernel/patches/0101, three commits from CachyOS's 7.2/fixes branch, by Baolin Wang): MGLRU (on in Fedora's config) reclaimed the code pages of running programs after one use, where the classic LRU keeps them, so under memory pressure an app's code was read back from disk on its next frame. Mapped executable pages are now promoted after their first use. No option: it changes how MGLRU reclaims.

TCP BBR, opt-in (kernel/config.d/bbr.config): built in, cubic stays the default. setprop persist.vendor.pc.tcp_bbr 1 switches to BBR, 0 back to cubic, and the choice is kept across reboots. It only paces what this PC sends.

amd-pstate (kernel/patches/0102, five commits from CachyOS's 7.2/amd-pstate branch): fixes to how the driver caches the EPP value, and a per-core EPP boost, off by default. With amd_pstate.epp_boost=1 on the command line (or 1 in /sys/module/amd_pstate/parameters/epp_boost), a core that stays at least half busy gets EPP performance, and the policy's EPP comes back 300 ms after it calms down. The policy's EPP is still the one the Power HAL writes, so the profiles keep working. Active mode, MSR-based Ryzens only.

Android's cgroups (kernel/patches/0014, from Android's common kernel): system_server moves each app's processes between the cgroup v1 groups of cgroups.json (cpuset, cpu and blkio: top-app, foreground, background) as the app's state changes. Mainline lets a task move another one there only when it is root or the same user, and every app is a user of its own, so each move failed (libprocessgroup: AddTidToCgroup failed to write ...: Permission denied, about 2000 times a boot on a Celeron N4100): apps stayed in the group they started in, and the background groups' limits (blkio.bfq.weight 10 in init.rc) did not reach them. As in Android's kernel, a task with CAP_SYS_NICE (system_server) may now move any task.

Ad blocking

Settings > Network & internet > Ad blocking blocks ad and tracker domains in every app, from the block lists you add by URL (hosts files such as StevenBlack's, plain domain lists), minus your allowed domains, plus your own. Lists update once a day and with Update now. The system app PcAdBlock downloads and merges them into a hosts file, and a root init service binds it over /system/etc/hosts; the system resolver reads that file before it asks any DNS server, so it also works with Private DNS on. It does not cover apps with their own DNS over HTTPS (Chrome's Secure DNS, Firefox), a VPN that resolves names remotely, or per-app rules. The network manager can add rules for every app in /data/misc/pc-dnsfilter/app-rules.json ({"version":1,"rules":[{"uid":-1,"domain":"example.com","action":"block"}]}; rules for a single uid are ignored, a hosts file cannot tell the apps apart). Details: packages/apps/PcAdBlock/README.md.

Root access

Off by default. Settings > System > Root access (shown while Developer options are on) turns on su for apps; each app then needs your approval in a prompt, remembered in the Root manager app, which also lists the apps that asked and a log of root use. Turning the switch off refuses every new su at once. Our own su and root service were chosen over KernelSU, which has no support for a non-GKI x86_64 7.x kernel. Details: packages/apps/PcRoot/README.md.

Desktop

On top of the base system, the desktop is made by vendor/pc/ui and the pc branches of frameworks/base and Launcher3: a status bar with a media chip (title, previous, play or pause, next, close), a clipboard history button and notification cards at the top end; a taskbar with All Apps panel; a desktop with icons, files and apps dropped on it; the power button set in Settings > System > Power (sleep, power menu, shut down). Settings > System > Keyboard has Show on-screen keyboard, which opens it even with a physical keyboard connected (tablets with a detachable keyboard often report one that is not attached). On a tablet or detachable (SMBIOS chassis 30 and 32) it starts on (rootdir/pc-tablet.sh). On a Surface Go, Go 2 or Go 3 (DMI product name) the firmware's PS/2 keyboard, which the machine does not have, is released at boot (rootdir/pc-tablet.sh), so the on-screen keyboard opens by itself with the Type Cover off. On every other PC the i8042 keyboard is left alone: it may be the real one. With two or more keyboard languages on, the status bar shows the one in use (EN, PT, RU), next to the other chips; Ctrl+Space and Ctrl+Shift+Space change it, and so does a click, which lists the languages with the current one marked. In the Single bar it sits on the taskbar and the list opens above it.

Single bar

Settings > System > Single bar (Settings.Secure pc_single_bar, 0 when unset) puts the PC's two bars in one. The top status bar goes away (its window has no top inset) and the taskbar holds everything: the 3 navigation buttons at the left end (Launcher3's TaskbarNavLayoutter) and, at the right end, SystemUI's desktop status bar contents: activity, media and keyboard language chips, notifications, clipboard, status icons and, last, the clock and date. That is a small SystemUI window at the bottom right, as tall as taskbar_frame_height, over the taskbar. The shade (notifications and quick settings) opens anchored at the bottom right, and the calendar and media popups open above the bar. Off, nothing changes.

SystemUI and the taskbar read the setting when they start. On a change SystemUI ends its process (the system starts it again) and the taskbar is recreated, so the switch is live after a moment.

To do

Not started, in rough order:

  • Battery temperature and cycle count in the health HAL (health/), for batteries that report them in other files.
  • Panel self refresh state: i915 reports it only in debugfs, which apps cannot read.
  • Custom fan curves point by point (today: the firmware's, quiet or cool).
  • Sound from Steam games in PcWayland (see its README).

Tree

Path What
kernel/ kernel config fragments, our kernel patches (patches/), kconfig.py (merge/check against android-base.config), build and firmware scripts
initrd/ pc_init.c, the initrd's /init
iso/ build_iso.py: live ISO (BIOS and UEFI with Secure Boot); also builds the installed system's GRUB (grubx64.efi, and grub-pc/ for BIOS)
secureboot/ make_keys.sh (your key pair), fetch_shim.sh (Fedora's shim), secureboot.py (key and shim lookup, SBAT, layout), sb_boot_test.py (QEMU check)
vulkan/ vulkan.pc: picks the Mesa Vulkan driver from the GPU's DRM driver (Intel: anv Gen9+, hasvk Gen7/8, none Gen6-)
gbm_mesa_wrapper/ builds minigbm's wrapper around Mesa's GBM
rootdir/ init.pc.rc, ueventd.rc, fstab and the boot scripts (pc-drivers, pc-modprobe, pc-audio, pc-wakeup, pc-bootlog)
terminal/ KVM detection (pc-hypervisor.sh) and default permissions for the AVF terminal
sensors/, lights/ the sensors HAL (IIO accelerometer and light sensor) and the backlight HAL
codec2/ hardware video: bridge/ (cros-codecs' VA-API decoders behind a C interface), encoder/ (H.264 on libva) and service/, the Codec2 HAL on top of both. pc_vadec_try and pc_vaenc_try try a driver without it
touch/ pc-iptsd: iptsd for Surface touch screens and pens
patches/ fixes for projects we do not fork, applied by apply.sh
addons/ make_addon.py, the add-on zips (no Google services, Google's apps)
docs/ UPDATES.md (update and patch format) and the screenshots
bootlog/ pc-bootlog, the boot animation that shows the live log
power/ android.hardware.power-service.pc, the Power HAL (profiles, battery tuning, charge limit)
modem/ pc-modemd (the WWAN modem's daemon: MBIM data session, GNSS strategies), android.hardware.gnss-service.pc (the GNSS HAL) and PcModem (the app that gives Android the modem's network)
kernel/build_wl.sh builds Broadcom's wl against the kernel and installs it, signed, with the in-tree modules
audio/, wifi/, camera/ HAL configuration; wifi/pc-radios.sh turns Wi-Fi back on when a laptop's Wi-Fi key lifts the radio's hardware block (Android does not follow rfkill)
sepolicy/ vendor policy, and system_ext policy in sepolicy/public and sepolicy/private (SELinux is permissive while it is completed)

Tests: python3 -m unittest in kernel/, initrd/, iso/, secureboot/, vulkan/, terminal/, bootlog/, rootdir/ and addons/, and test_local_manifest.py at the root; secureboot/sb_boot_test.py boots an ISO in QEMU.

Trying it in a VM

iso/run_vm.sh boots out/lineage-pc.iso in QEMU/KVM like a PC: UEFI firmware, the GRUB menu, the live system, a virtio-vga-gl screen (virgl) at 1920x1080 in an SDL window, USB keyboard and mouse, and user networking. Click in the window to use the mouse; Ctrl+Alt+G gives it back.

device/pc/pc_x86_64/iso/run_vm.sh --direct        # QEMU loads the ISO's kernel itself (no firmware, no GRUB)
device/pc/pc_x86_64/iso/run_vm.sh                 # live, nothing kept
device/pc/pc_x86_64/iso/run_vm.sh --disk          # plus a 64 GB SATA disk (out/vm/disk.qcow2: GPT, EFI partition, ext4)
device/pc/pc_x86_64/iso/run_vm.sh --disk --no-iso # the installed system
device/pc/pc_x86_64/iso/run_vm.sh --res 1366x768 --bios

The mouse is relative (usb-mouse): Android has no class for absolute pointers without BTN_TOUCH, so QEMU's tablet does nothing; VMware's VMMouse is the same kind of device, and pc-drivers.sh switches it back to plain PS/2 at boot, so VMware hands over a relative mouse with the VM's default settings (click into the window to capture it, Ctrl+Alt releases it). On VMware, turn on "Accelerate 3D graphics": vmwgfx and Mesa's svga driver show the desktop with the RGBA fixes in kernel/patches/0004, 0005 and patches/external/mesa3d/0002. VirtualBox needs VMSVGA with 3D acceleration. QEMU's virtio-gpu does not come back from suspend: the VM has no S3/S4, and Android keeps the screen on when it finds the CPU's hypervisor flag.

ARM apps

Apps that only ship ARM code run through Google's libndk_translation native bridge (Berberis; arm64 only: Android 17 is 64-bit). It is proprietary, so it is not in the tree: device.mk inherits vendor/pc-ndk-local/ndk_translation.mk only when that local-only folder exists, and the builder makes it from the Android 17 emulator image (system-images;android-37.0;google_apis;x86_64). A local vendor/gbos-local/BoardConfigLocal.mk (also optional, included by BoardConfig.mk) sets TARGET_NATIVE_BRIDGE_ABI := arm64-v8a when the translation is there, which adds arm64-v8a after x86_64 in the ro.product.cpu.abilist* properties. ARM executables run through binfmt_misc (CONFIG_BINFMT_MISC=y). Never publish these folders.

Google services

The public build has microG (GmsCore, GsfProxy, FakeStore) and F-Droid from LineageOS for microG's vendor/partner_gms; its vendorsetup.sh downloads the APKs and checks their signatures. LineageOS 24 lets only microG's GmsCore spoof Google's signature (MicrogUtils). SafetyNet and DroidGuard are on from the start (patches/vendor/partner_gms/0001): with them off, YouTube's playback check failed and videos stopped after 60 seconds. Passkeys on another device (QR code and Bluetooth) work: the framework overlay names Google Play services' RemoteService as Credential Manager's hybrid service (microG declares one with the same name), #91.

Google apps edition. A builder with the files can build with Google's apps instead: the optional, local-only vendor/gbos-local (made by the builder from a GoogleBook OS image they own, never published) adds Google's services, Play Store and the rest when the build runs with WITH_GMS=true. lineage_pc_x86_64.mk then skips microG, as the package names are the same. Without the folder or the flag, nothing changes.

Other choices are add-ons: ext4 images in the install folder's addons/, laid over the system by pc-init with overlayfs (in name order; an update replaces the system and keeps them). Whiteouts in an add-on hide microG. addons/make_addon.py makes them as zips:

device/pc/pc_x86_64/addons/make_addon.py none -o no-google.zip                  # no Google services
device/pc/pc_x86_64/addons/make_addon.py google --from DIR -o google-apps.zip   # Google's apps

DIR holds product/ and system_ext/ of an Android 17 x86_64 Google image you own. Google's apps may not be redistributed: keep that zip to yourself.

Default browser

The default browser is Chromium's Android Desktop build (org.chromium.chrome, desktop UI with a tab strip and extensions), from the Chromium project's snapshots (chromium-browser-snapshots/AndroidDesktop_x64). It replaces LineageOS's Jelly. Google's APK is never in git: browser/fetch_chromium.sh downloads one pinned snapshot (number, size and sha256 in the script), checks it, and puts Chromium.apk and a generated Android.bp in the local vendor/pc-chromium-local (outside every repository). browser/chromium.mk (inherited by device.mk) adds the module PcChromium, an android_app_import in the product partition that overrides Jelly. Credits and licenses: browser/NOTICE.md; the browser lists its third party code at chrome://credits.

export PC_CHROMIUM_CERT=$HOME/keys/pc-chromium     # path without extension: .x509.pem and .pk8
device/pc/pc_x86_64/browser/fetch_chromium.sh      # idempotent; offline once Chromium.apk is verified

The signing key. Chromium's own APK is signed with Chromium's public debug key, and the build's test-keys are public too: anyone could sign an "update" of a browser signed with either. So the build re-signs the APK with a dedicated key of ours. Make it once, outside the source tree and outside git:

mkdir -p ~/keys && development/tools/make_key ~/keys/pc-chromium '/CN=LineageOS for PCs Chromium/'
# an empty password, so the build can read pc-chromium.pk8 (Soong cannot ask for one)

Keep a backup of both files (.pk8 and .x509.pem) somewhere safe and never put them in git. Lose the key and no installed browser can ever be updated again: Android refuses an update signed by another key. Without the pair the script removes the module and the build says "Chromium left out" and keeps Jelly; it never signs with test-keys. Only the signature changes; the APK's content stays as Google built it.

Facts for builders: the APK is about 427 MB (libchrome.so alone is 282 MB, stored uncompressed as the manifest asks), so the system image, the ISO and the update grow by that much. Only x86_64. The default browser role needs no overlay: the browser role's fallback holder is the only browser in the system (BrowserRoleBehavior), and the taskbar pins the browser by intent category (default_workspace_desktop.xml). The desktop UI needs android.hardware.type.pc, which this device declares. WebView is unchanged.

What people lose and gain compared with Jelly: no automatic browser updates between our system versions (security fixes come with our updates), no Google account sign-in or sync (Chromium has no Google API keys), a larger image. They gain a full Chromium engine with extensions, WebRTC and a desktop interface. DRM video goes through the system's MediaDrm, so it works only on builds that have Widevine (the local-only vendor/gbos-local); H.264/AAC go through the system's MediaCodec.

Writing the stick

Write the ISO as a disk image (Rufus's DD mode, balenaEtcher, dd). Rufus's ISO mode copies the files to an NTFS stick (system.img is over FAT32's 4 GB): the ISO holds the EFI partition's files in EFI/BOOT for it, and its GRUB finds the stick by lineage/install-live.id when the ISO's UUID is not there.

Multiboot sticks (Ventoy)

The ISO also boots as a file on a multiboot stick. In Ventoy's normal mode pc-init looks for our ISO (volume label LINEAGE_PC) at the root and one folder down of every partition, loop-mounts it and boots the folder inside. Loaders that boot ISOs through boot/grub/loopback.cfg (Ventoy's GRUB2 mode, Super GRUB2 and the like) pass iso-scan/filename=${iso_path} instead, naming the file directly.

Screenshots

Taken in QEMU/KVM at 1920x1080: the boot log, panic and first boot from the live ISO; the desktop, app list and login screen from a system installed and updated to 20261203-1052, in Brazilian Portuguese.

Boot log with the live logcat.

Boot log with the live logcat.

The kernel panic screen.

The kernel panic screen (a panic asked for with SysRq).

First boot.

First boot.

Desktop.

The desktop.

App list.

The app list, from the search button of the task bar.

Login screen of an installed system.

Login screen of an installed system, from the second boot on.

License

Apache License 2.0, see LICENSE. Copyright 2026 Mateus Seiboth. Third-party code keeps its own license (see Credits).

Credits

  • LineageOS (GitHub): the base system and build this is part of.
  • Android Open Source Project: the platform, its APIs and build system.
  • BlissOS (GitHub) and the Android-Generic Project: the approach to running Android on PCs that this project follows.
  • Android-x86: the original Android-on-PC work, including installing into a folder and booting through GRUB.
  • GloDroid: aospext (Mesa built inside the Android build) and minigbm's gbm_mesa backend.
  • The Android Virtualization Framework and crosvm: the Linux terminal and its VM.
  • AOSP Cuttlefish: audio/primary_audio_policy_configuration.xml comes from device/google/cuttlefish.
  • shim: the first-stage loader signed by Microsoft and its MokManager; the ISO and installs use Fedora's signed shim-x64 build as distributions do. Its SBAT format and revocation levels define our GRUB's .sbat.
  • GRUB: the boot loader on the ISO and on installs (Fedora's grub2 build).
  • sbsigntools: sbsign and sbverify sign and check GRUB and the kernel.
  • mokutil: the reference for queuing a key (MokNew/MokAuth) that pc-installd follows.
  • GNU xorriso, mtools and OpenSSL: the hybrid ISO, its EFI partition and the key pair.
  • EDK II (OVMF) and QEMU: the Secure Boot test.
  • libmbim, libqmi and ModemManager: read for the MBIM and QMI message layouts (the UUID of the QMI service, the LOC service's messages) that modem/ implements with its own code; nothing is copied from them.
  • The boot log comes from Mateus Seiboth's (me) projector boot log, hy300-rk3566/android/bootlog: its log model, stages and look, ported here to its native version.
    • Logo: capybara artwork by Mateus Seiboth (me).
    • bootlog/font/ holds glyph strips rasterized from AOSP's DroidSansMono (frameworks/base/data/fonts, Apache License 2.0, bootlog/font/NOTICE).
  • linux-surface: the Microsoft Surface kernel patches (touch screens, Wi-Fi quirks, Surface Aggregator and more), applied from our fork mateusseiboth/linux-surface.
    • iptsd: the touch screen and pen daemon (all its touch processing), built for Android from our fork mateusseiboth/iptsd, whose port is by Mateus Seiboth (me).
  • broadcom-wl-linux-mainline by joanbm: the patches that keep Broadcom's wl (broadcom-sta, 6.30.223.271) building on current kernels, used from our fork mateusseiboth/broadcom-wl-linux-mainline (the PCI ids and wlan0). The driver and its binary are Broadcom's, under Broadcom's license.
  • Mesa, minigbm (ChromiumOS), drm_hwcomposer, linux-firmware, the Linux kernel and Fedora's kernel configuration, used as the base of kernel/fedora-7.2.config.

Thanks to everyone behind these projects. Files taken from them keep their original licenses and copyright notices.

Ähnliche Projekte entdecken

Wird geladen…