Compiling Android for a real-world device
By now, you know everything you need to know about the build system and how to retrieve the source code. Retrieving the proper source code for Google official devices is no big deal, but life isn't always so easy. Working with many different devices, you will certainly come across a manufacturer who is not willing to give the source code away. They are not legally forced to release it. This is an unfortunate scenario that, hopefully, will be considered bad marketing and will disappear in the future.
For our example, instead, we are going to play with two devices that offer great support and that will magnificently serve the purpose.
Nexus 6
The first device we are going to explore is the official Google Nexus 6 by Motorola. We have already had an overview of the device. If you want to push it even further, you can refer to the official Motorola Nexus 6 web page:
http://www.motorola.in/consumers/View-all-Mobile-Phones/Nexus-6-by-Motorola/nexus...