Download Android source code and kernel from Ubuntu
Source: Internet
Author: User
First, you have to install Ubuntu on your computer, and then perform the following work. you only need to copy and paste it. 1. install the Git tool. Android source code is managed using Git tools. compared with SVN, this is a distributed source code management tool, while SVN is a centralized source...
First, you have to install Ubuntu on your computer, and then perform the following work. you only need to copy and paste it.
1. install the Git tool. Android source code is managed using Git tools. compared with SVN, SVN is a distributed source code management tool, while SVN is a centralized source code management tool. To install the Git tool, run the following command on Ubuntu:
By the way, in the above third step sudo apt-get install sun-java6-jre sun-java6-plugin, a dialog box will pop up, then press the Tab key to switch the focus, then press Enter on the line.
3. other dependent packages. Run the following command on Ubuntu:
Many websites provide source code downloading, but some images are unavailable. the official reference website is provided here. if the local content cannot be used, refer to the official website:
Http://source.android.com/source/downloading.html
Obtain the Android source code
1. create a new directory under the current directory to store our Android directory,
The-B parameter is used for the conversion branch. At the same time, note that the bin and source are both located in the Android directory and are in a parallel structure.
3. enter the user name and address. you can enter the user name or address randomly.
4. synchronize code
../Bin/repo sync
Note: The synchronization code is very slow at this time and may take several days. The connection request may fail during synchronization. you can execute this command here. this project file supports resumable data transfer.
3. download the Android kernel
The Anroid kernel is not downloaded together when the command ../bin/repo sync is used. If you do not need to modify or transplant the Android kernel, you can extract the image from the Android simulator.
Create a new kernel directory in the Android directory and run the following command:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.