1, Android Transplant is mainly the Linux kernel porting, and the Linux kernel migration is mainly Linux drive migration, in order to develop and test the Linux drive, to build two sets of development environment under Ubuntu: Android Application development environment and Linux kernel development environment;
2. Android source code includes: the source code of the application embedded in the Android system, the source code of the various tools of ANDROIDSDK, ANDROIDNDK source code and the HAL sources;
3. Configure the Android source code download environment:
(1) Create a directory to hold the download script file (repo);
(2) Download repo script file (for downloading Android source code);
(3) Create a directory to store the Android source code;
(4) initialization;
(5) Start to download the source code;
4, if you understand the directory structure of Android source code, you can use repo sync or git clone command to download only some of the source code;
5, compile the Android source code steps:
(1) initializing the compilation environment;
(2) Select the target;
(3) compiling Android source code;
6, note that Android does not directly use the Linux kernel downloaded from www.kernel.org, you must use the URL provided by Google to download the Linux kernel source code for Android use;
7, download and compile the Linux kernel source code of the steps in the book is very detailed, to master;
4 download and compile the source code