1, download, compile, test the source code
Create the directory where the downloaded files are stored (repo)
Download Repo script file
Create a directory to hold the source code
Start downloading the source code.
2, source code directory meaning summary
ABI Application Binary Interface
Device-related code
External Spread Tool source code
NDK NDK related source code
SDK SDK such as DDMS, Draw9patch, Sdkmannager.
Basic systems for System Android
3. Download part of the source code
Using the Repo Sync command
Using the git clone command
4. Linux Kernel directory Summary
Block: Partial block device Drive
Drivers: Device drivers, each of which consumes a subdirectory, such as char, block, net, MTD, I²c, and so on.
FS: Supports various file systems, such as ext, FAT, NTFS, JFFS2, etc.
Include: header files, System-related header files are placed under the Include/linux subdirectory.
INIT: Kernel initialization code.
IPC: Code for interprocess communication
Kernel: The core of the kernel, including the scheduling of the process, timers, and so on, and some of the peace platform related to the code in the Arch/*/kernel directory.
LIB: library file code.
MM: Memory management code, and part of the platform-related code is placed in the ARCH/*/MM directory.
NET: Network-related code, the realization of a variety of common network protocols.
Scripts: The script file used to configure the kernel.
5, Android Transplant is mainly the Linux kernel transplant, the Linux kernel transplant is mainly Linux4
-Driven porting. So we need to build two sets of environments for Android application development environment and Linux kernel development environment.
http://www.cnblogs.com/caoyutao/
Android Deep Explore--hal and driver Development----The fourth chapter reading notes