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.
Mario Tomás Serrafero · Jul 6, 2015 at 12:49 pm · 13 comments

Which OEM Would You Like to Help?

Most manufacturers have moments of greatness and moments of decadence, and in the past few years we've some of our favorite companies' tables turned. Some are stagnating, some are struggling, some lack direction. Despite this, we often hold them dear to our hearts. Many of them could use a hand, be it with design, marketing, or other tasks. If you could help out an OEM and take it back to its golden days, which one would it be?

DISCUSS
Aamir Siddiqui · Jul 6, 2015 at 11:03 am · 5 comments

Root T-Mobile S6/Edge on 5.1.1 Without Tripping Knox

If you purchase phones from a carrier, you may be no stranger to the difficulties involved in rooting and installing a custom rom, recovery and kernel on such a carrier locked device. Add to this the extra layer of security that Samsung adds in the form of the Knox counter on its devices, and one can only imagine the roadblocks for enthusiasts who want to play around with their device without losing warranty in the process. It's a slippery slope...

XDA NEWS
Jimmy McGee · Jul 6, 2015 at 06:00 am · 5 comments

IonVR Coming Soon, HTC M9 Dev Edition Gets Android 5.1 – XDA TV

The HTC M9 Developer Edition has received Android 5.1. That and much more news is covered by Jordan when he reviews all the important stories from this week. Included in this week's news is the announcement of IonVR and be sure to check out the article talking about the OnePlus Cardboard price (Hint, it's free). That's not all that's covered in today's video! Jordan talks about the other videos released this week on XDA TV. XDA TV Producer TK released an...

XDA NEWS
Share This