Tomek Kondrat · May 14, 2014 at 09:30 pm

Comprehensive Guide to the Android Build Process

XDA is full of various source-built, AOSP-derived ROMs. If you are trying to build one of them for yourself, it doesn’t really matter whether it’s Omni, CyanogenMod, AOKP, Slim, or any other ROM—the build instructions are pretty much the same.

In order to build Android on your own, you need to know three commands to start the environment, launch your device, and start a build by typing make. However, Android’s developers prepared more than these three commands. With various commands you can easily compile a single application, framework, or kernel, as well as perform many other tasks. If you are interested to learn more about build process, you should spend some time reading a comprehensive guide written by XDA Senior Member v_superuser.

In this guide, v_superuser explains various commands used in Android build process. Some commands are rarely used, but they’re still good to know just in case. The guide also explains the make process graphically, so you will finally understand how Linux or OS X processes files to build a shiny system.img.

Explaining make is not all that this guide has to offer. Through reading it, you will learn how to speed up your build using Ccache, which combined with handy scripts will make a build process nothing but pleasure. This guide contains most of the definitions that wikis and Google have to offer, and they are gathered together so you don’t have to browse the Internet to find every single command. Everything is here in one place.

If you are beginning your journey with Android or just want to learn more about this amazing OS, don’t hesitate to visit the guide thread for a great resource of information.


_________
Want something on the XDA Portal? Send us a tip!

Tomek Kondrat

eagleeyetom is an editor on XDA-Developers, the largest community for Android users. Tomek is the only Polish moderator on XDA Developers. He graduated from the University of Warmia and Mazury in Olsztyn with a degree in journalism and public communication in 2013. He's a big fan of football (not hand egg), post rock and cooking. A total addict of mobile technology, especially Android. Currently flashes dozens of custom ROMs on his OPO. View eagleeyetom's posts and articles here.
Emil Kako · Mar 31, 2015 at 06:55 pm · 3 comments

What’s Your Biggest Reason for Not Owning an iPhone?

With XDA being a community of Android enthusiasts, it is not uncommon to see lots of bashing on Apple's iPhone here. There are different reasons for the hate, but we'd like to hear your number one reason for not going with the iPhone. Let us know your thoughts below!

DISCUSS
Mario Tomás Serrafero · Mar 31, 2015 at 11:55 am · 3 comments

Xiaomi Finally Releases Kernel Sources

If you are familiar with Xiaomi, you might have heard that they are not the most compliant when it comes to the General Public License that makes the core of Android open to us. The terms of the GPLv2 state that since the Android kernel is based on the Linux kernel, which is licensed under GPL,v2 Android has to be open-source for everyone to study or modify, and those that modify the Android kernel have to make their sources immediately available for...

XDA NEWS
Faiz Malkani · Mar 31, 2015 at 10:59 am · 2 comments

Xiaomi Announces Redmi 2A and More for 5th Anniversary

Xiaomi was founded on April 6th, 2010 and its fifth anniversary is just around the corner. In the past five years, the company has grown by leaps and bounds, rising to the positions of largest smartphone OEM in China and third-largest globally and coupled with its expansion plans and 100 million sales benchmark, this anniversary warranted a fervent celebration. After teasing products on its forums for a few days, Xiaomi held the anniversary event earlier today and staying true to the...

XDA NEWS
Share This