Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Embedded Android N Programming

You're reading from  Learning Embedded Android N Programming

Product type Book
Published in Jul 2016
Publisher Packt
ISBN-13 9781785282881
Pages 282 pages
Edition 1st Edition
Languages
Author (1):
Ivan Morgillo Ivan Morgillo
Profile icon Ivan Morgillo

Table of Contents (15) Chapters

Learning Embedded Android N Programming
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
1. Understanding the Architecture 2. Obtaining the Source Code – Structure and Philosophy 3. Set up and Build – the Emulator Way 4. Moving to Real-World Hardware 5. Customizing Kernel and Boot Sequence 6. "Cooking" Your First ROM 7. Tailoring Your Personal Android System 8. Beyond the Smartphone Index

Customizing the boot image


So far, you learned how to obtain the kernel source code, how to set up the system, how to configure the kernel, and how to create your first custom kernel image. The next step is about equipping your device with your new kernel. To achieve this, we are going to analyze the internal structure of the boot.img file used by every Android device.

Creating the boot image

A custom ROM comes with four .img files, necessary to create a working Android system. Two of them (system.img and data.img) are compressed images of a Linux compatible filesystem.

The remaining two files (boot.img and recovery.img) don't contain a standard filesystem. Instead, they are custom image files, specific to Android. These images contain a 2KB header sector, the kernel core, compressed with gzip, a ramdisk, and an optional second stated loader.

Android provides further info about the internal structure of the image file in the boot.img.h file contained in the mkbootimg package in the AOSP source...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}