Book Image

Learning Embedded Android N Programming

By : Ivan Morgillo
Book Image

Learning Embedded Android N Programming

By: Ivan Morgillo

Overview of this book

Take a deep dive into the Android build system and its customization with Learning Embedded Android Programming, written to help you master the steep learning curve of working with embedded Android. Start by exploring the basics of Android OS, discover Google’s “repo” system, and discover how to retrieve AOSP source code. You'll then find out to set up the build environment and the first AOSP system. Next, learn how to customize the boot sequence with a new animation, and use an Android “kitchen” to “cook” your custom ROM. By the end of the book, you'll be able to build customized Android open source projects by developing your own set of features.
Table of Contents (15 chapters)
Learning Embedded Android N Programming
About the Authors
About the Reviewer

The Android build system

Before digging into configuring and building your first Android system, we will have an overview of the build system itself, the tools involved, and the unique approach to the whole process Google has.

There is very little official documentation available about creating new modules and about the build system itself. Most of your knowledge at the end of this journey will come from your own hands-on experience and from our experience that we put in these pages.

An overview

As with lots of projects out there, open source or closed source, Android uses the powerful tool make to build the whole system, but compared to all other projects, Android uses it in a completely different way.

The common approach of using make would be to use a hierarchy of Makefiles: one single root Makefile retrieves and runs every other Makefile, contained in some of the subfolders of the project. Usually, every subfolder represents a submodule of the main project and it can be built alone or could...