Porting Android to run on a Raspberry Pi

Paul Mayero
December 03, 2026

Porting Android to run on a Raspberry Pi

Android is a Linux variant that runs on various devices. This talk aims to show how Android can be ported to run on Raspberry Pi. It was presented during DroidCon Uganda 2026.

Paul Mayero

December 03, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

13 slides
  1. Have you thought of running it on a raspberry Pi?

    TO BUILD OR NOT TO BUILD? That’s the big question
  2. BUILDING NOT TO BUILD Using existing options; Emteria and Get

    the cloud provider with google specs for Lineage OS building Advantages 72 cpus,400gb of hard-disk space,64gb of RAM • fully automated time =40 minutes • lowers the build time • Emteria is free, upto #3devices • Lineage OS is open-sourced On a computer with 6 cpus, 64GB RAM • Training wheels time??? Initial build & the consequential builds
  3. LAYERED STACK Android is a layered stack that isolates app-facing

    APIs from low-level hardware. From an app opening the camera: App → Camera API → Camera service → Camera HAL → kernel driver → hardware. This separation lets you swap the HAL or kernel for a Raspberry Pi without changing higher layers, enabling portable apps across devices.
  4. HOW TO BUILD Repo Init Host Tools Env Setup Device

    Overlays Build Images Package & Flash Choose branch/tag and fetch AOSP sources with repo init and repo sync. Install Java, Python, buildessential, and crosstoolchains. Source build/envsetup. sh and select target with lunch. Apply device tree, kernel defconfig, and vendor blobs. Run make to produce boot.img, system.img, vendor.img. Sign images if needed and prepare SD card or fastboot artifact.
  5. Pi Boot Flow Boot ROM Bootloader Load Kernel Init GPU/boot

    ROM reads the bootloader from the SD card and hands control to the bootloader. Bootloader loads the Linux kernel and the device tree blob configured for the Pi. Kernel initializes hardware and mounts an initramfs or root filesystem. Android Init Runtime Start UI Surface Init launches Android init (init.rc), starting Zygote, property service, and SELinux setup. Android runtime and system services initialize; HALs come up via vendor modules or binder services. SurfaceFlinger and SystemUI start, presenting the Android UI.
  6. Porting Timeline Kernel Build DTB & Boot Vendor HALs Init

    & SELinux Incremental Tests Demo Prep Obtain or build a Pi kernel with GPU, display, I2C, SPI, USB, and Wi‑Fi drivers. Create a matching Device Tree Blob and boot config for the target board. Collect vendor blobs or implement HALs that map Android interfaces to kernel devices (graphics, input, audio, camera, sensors). Adapt init.rc and SELinux policies to permit required services. Boot to init, boot to framework, run graphics/GL, audio, and camera tests; iterate. Assemble the image and rehearsed troubleshooting answers; document kernel/blob sources and trade‑offs.
  7. PORTABILITY BY DESIGN Android on Pi demonstrates how a layered

    stack, disciplined validation, and targeted HALs turn unsupported hardware into a working platform. Keep the kernel/DT, essential HALs, and vendor blobs in focus, validate iteratively, and the path from concept to demo becomes tangible. Treat this as a blueprint you can adapt to new boards, sensors, and future Android releases.
  8. THANK YOU Do you have any questions? LinkedIn: Faith Nyakerario

    & Paul Mayero Substack: afterthesegfault CREDITS: This presentation template was created by Slidesgo, and includes icons, infographics & images by Freepik

More Decks by Paul Mayero

Other Decks in Technology