EmbeddedRelated.com
Books
Jacob Beningo
Live online course · Jacob Beningo
AI for Embedded Developers
$100 off for EmbeddedRelated readers until Dec 6 · 5 live sessions, Dec 7-11
Discount ends in
27days 20hrs 27min 51sec
Learn More →

Embedded Android: Porting, Extending, and Customizing

Yaghmour, Karim ● 2013

Looking to port Android to other platforms such as embedded devices? This hands-on book shows you how Android works and how you can adapt it to fit your needs. You’ll delve into Android’s architecture and learn how to navigate its source code, modify its various components, and create your own version of Android for your particular device. You’ll also discover how Android differs from its Linux roots.

If you’re experienced with embedded systems development and have a good handle on Linux, this book helps you mold Android to hardware platforms other than mobile devices.

  • Learn about Android’s development model and the hardware you need to run it
  • Get a quick primer on Android internals, including the Linux kernel and Dalvik virtual machine
  • Set up and explore the AOSP without hardware, using a functional emulator image
  • Understand Android’s non-recursive build system, and learn how to make your own modifications
  • Use evaluation boards to prototype your embedded Android system
  • Examine the native user-space, including the root filesystem layout, the adb tool, and Android’s command line
  • Discover how to interact with—and customize—the Android Framework


Why Read This Book

You will get a hands-on, boots-on-the-ground guide to taking Android off phones and onto embedded hardware: how the platform is structured, how its Linux roots influence device bring-up, and which pieces you must change to port or customize it. The book emphasizes practical recipes — building AOSP, integrating kernel and drivers, tuning the runtime (Dalvik) and modifying system services — so you can produce a working, maintainable Android image for your board.

Who Will Benefit

Experienced embedded/Linux engineers or firmware developers who need to port, extend, or shrink Android for custom hardware and IoT devices.

Level: Advanced — Prerequisites: Solid Linux systems experience, C programming and kernel basics, familiarity with cross-compilation and board bring-up; basic Java knowledge helps for framework-level changes.

Get This Book

Key Takeaways

  • Build and modify a complete AOSP image targeted to your board using the Android build system and repo
  • Integrate and configure the Linux kernel, bootloader (U-Boot/fastboot), and device tree for Android boot
  • Implement HAL layers and glue native drivers so hardware (display, audio, sensors, cameras, etc.) works with Android frameworks
  • Customize system services, init scripts (init.rc), and Android framework components to fit embedded constraints
  • Debug and profile Android system issues using adb, logcat, kernel logs, gdb/strace and Dalvik tooling
  • Create updateable images and packaging (recovery, OTA, signed system images) appropriate for embedded deployment

Topics Covered

  1. Introduction: Android on Embedded Devices
  2. Android Architecture Overview: Kernel, Native Libraries, Runtime, and Frameworks
  3. Development Model and the AOSP Build System
  4. Toolchains, Repositories, and Managing Source (repo, git, JDK, cross-compilers)
  5. Linux Kernel for Android: Configuring, Patching, and Device Tree
  6. Bootloader and Boot Flow: U-Boot, fastboot, recovery, and image formats
  7. Hardware Abstraction Layer (HAL) and Native Drivers
  8. Native Libraries, Bionic, and the NDK
  9. Dalvik VM and Runtime Considerations (memory, GC, performance)
  10. Android Frameworks and System Services (activity manager, services, permissions)
  11. Porting Case Studies: Bringing up a Board and Integrating Peripherals
  12. Security, SELinux (basics), and System Integrity for Embedded Android
  13. Debugging, Profiling, and Testing Embedded Android
  14. Custom Images, OTA Updates, and Distribution
  15. Appendices: Useful Tools, AOSP Recipes, and Common Pitfalls

Languages, Platforms & Tools

CC++JavaShellARM (primary)x86MIPSEmbedded Linux-based boardsAOSP repo and build systemgitGCC/cross-compilersAndroid SDK/ADB/fastbootJDK (javac)NDKU-Bootmkbootimggdb/strace/perflogcat

How It Compares

More focused on practical porting and BSP-level work than Roger Ye's "Android System Programming" (which is narrower on app-level/native programming); complements general embedded Linux texts (e.g., "Building Embedded Linux Systems") by drilling into Android-specific components.

Related Books