How to Compile Android from Source Code – XDA TV
Ever wonder how developers on XDA take the source code released to the AOSP and create ROMs? While creating software for your phone isn’t as easy as what you see in this video (you also need lots of drivers), the process for compiling Android isn’t that difficult. In this video, Shen tells you about the process. Click on for the video and for steps (with text) on how to do this.
For the full steps, check out the discussion thread.