This chapter first describes the download compile and test Android source code: 1. Configure the Android source code download environment: The first step: Create a directory to hold the download script file; Step two: Download the repo script file. Step three: Create a directory to hold the Android source code; Fourth step: Initialize; step Fifth: Start downloading the android source code; 2. Android Source code directory structure parsing; 3. Download part of the Android source code: Method One: Use the Repo Sync command. Method Two: Use the git clone command ; 4. Compiling Android Source code: The first step: initializing the compilation environment; the second step: selecting the target; the third step: compiling the Android source code; 5.out directory structure analysis; 6. Release your apk as an Android built-in program 7. Test the System.img file with the simulator. Then it is to download and compile the kernel source code: 1. Download the Liunx kernel source code; 2.liunx kernel source directory structure; 3. Install the Android kernel's compilation environment: First step: Prepare for work. Step two: Unzip the compiler. Step three: Verify that the cross-compilation environment is installed successfully; Fourth step: Install Libncurses5;4. Configure and compile the Liunx kernel. The android transplant is primarily a liunx kernel transplant. And the Liunx kernel transplant is mainly liunx drive migration.
The fourth chapter of the source code download and compilation of the Reading