Android applications can be developed in two environments, one in the Android SDK environment, typically integrated in eclipse development, and the other in the Android source code engineering environment, The benefit of developing in this environment is that you can use some interfaces that are not exposed in the SDK. But if we want to modify the source code of the Android system, or add a new feature interface to the Android system, it can only be done in the Android source code engineering environment. Since our aim is to analyze the source code of the Android system, we are also in the Android source code environment when developing Android applications. In this way, we need to build a set of Android source code engineering environment.
Currently, the Android source engineering environment can only be used on Linux platforms, and the distribution of Linux systems is much more, here we recommend Ubuntu System. Ubuntu system is free, and very easy to use, install and update the application is also very convenient, its official: http://www.ubuntu.com/
After installing the Ubuntu system, we can download, compile and install the Android source code, the specific methods and procedures can refer to the following article: download, compile and install Android latest source code on Ubuntu
Android system source code works by default does not contain the Linux kernel source, if we need to modify the Android kernel or add new modules inside, then the Android kernel source code to download, compile and install, Specific methods and procedures can refer to the following article: download, compile and install Android latest kernel source code (Linux Kernel) on Ubuntu
After the Android source code engineering environment is set up, we can develop new applications or modify the system code in it. Add a new application or modify the system's code, do not need to recompile the entire source code project, as long as the separate compilation of the modified module can be, the specific method can refer to the following article: How to compile the module in the Android source code separately
For an already developed application or system function, if you want to show the demo to the customer experience, we can either run on the real machine, or in the emulator (Android source code engineering environment or the Android SDK environment is integrated emulator) above the run. When we do not have a real machine on hand, and we do not want to bring the entire Android source engineering environment or the Android SDK environment to show our demo, we can consider the two environments to separate the simulator, The specific method can be referred to the following article: production of independent distribution of the Android simulator
Android source code Engineering environment Building