The source code in Android includes the sources of the applications in the Android system, the source code of the various tools with the SDK, the NDK source code, and the HAL sources.
The Android source code can be downloaded or partially downloaded. After compiling the source code of Android, after compiling, it will generate an out directory under the Android source code root directory, all the compiled target files are in this directory, and there are two direct subdirectories in the Out directory, namely host and Target. The former represents the tool generated on the host (x86), which represents the content that the target machine (modulo thinks ARMv5) is running. In Target, it contains two direct subdirectories, common and product. Common contains the Java libraries required for programs running on Android, the R.java of resource IDs, and so on. Product is the content of products.
The Out/target/generic directory contains the final target file to be used. 3 of the important IMG files are: system.img,ramdisk.img,userdata.img. stored in the system.img file is the apk that we say in our daily life that requires root to be deleted.
During the installation of the Linux kernel, it is important to note that to use the Linux GUI you need to download and install QT.
Summary: Android porting is primarily a Linux kernel migration. Linux kernel porting is primarily a Linux-powered migration. So in order to develop and test Linux drivers. Two sets of development environments are required under Ubuntu Linux, namely the Android application development environment and the Linux kernel development environment.
Android Drive Development (iv)----installation configuration of the Android kernel and the Linux kernel