Embedded Android: Porting, Extending, and Customizing
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.
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
- Introduction: Android on Embedded Devices
- Android Architecture Overview: Kernel, Native Libraries, Runtime, and Frameworks
- Development Model and the AOSP Build System
- Toolchains, Repositories, and Managing Source (repo, git, JDK, cross-compilers)
- Linux Kernel for Android: Configuring, Patching, and Device Tree
- Bootloader and Boot Flow: U-Boot, fastboot, recovery, and image formats
- Hardware Abstraction Layer (HAL) and Native Drivers
- Native Libraries, Bionic, and the NDK
- Dalvik VM and Runtime Considerations (memory, GC, performance)
- Android Frameworks and System Services (activity manager, services, permissions)
- Porting Case Studies: Bringing up a Board and Integrating Peripherals
- Security, SELinux (basics), and System Integrity for Embedded Android
- Debugging, Profiling, and Testing Embedded Android
- Custom Images, OTA Updates, and Distribution
- Appendices: Useful Tools, AOSP Recipes, and Common Pitfalls
Languages, Platforms & Tools
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.













