AndroidThe driving development is naturally inseparable from the source code. As a beginner, we start with the download, compilation, and testing of the source code. The first step, nature is our configuration environment, first we want to configureAndroidSource code download environment, in the build environment, the first step is to create a directory to store footstep files. Then downloadRepofootstep file, this is for downloadAndroidsource code, the third step is to create a storageAndroidThe source code of the directory, the fourth step is the initialization, the last step is our downloadAndroidthe source code. In theAndroidmost of the source code is a directory. They are designed to store different sub-projects. and downloadAndroida part of a neutron project requires only a few commands, such as:Repo Syncand so on. Download GoodAndroidsource code, you need to compile theAndroidsource of the code. The first thing to forget is to initialize the build environment, then select the target and choose a variable to be our goal. Then the source code is compiled. The main operational command is Makeup. Although it is said that the main Makemainly,but using Makewill make compilation much less efficient, because it will only take advantage of aCPU. Androidthe transplant is mainlyLinuxporting of the kernel. andLinuxthe kernel porting is primarilyLinux-driven porting. So we have to configure and compileLinuxkernel.
Download and compile the source code