Refer toArticleIs summarized as follows:
1. System Environment: ubuntu10.10-64bit
2. Install git
$ Sudo apt-Get install Git-core
3. Install curl
$ Sudo apt-Get install Git-core curl
4. Create a repo directory, open the command line, and enter
$ Mkdir ~ /Bin $ Path = ~ /Bin: $ path
5. Click this URL to download the latest repo script.
My repo-1.14, saved in the bin directory created in the previous step, renamed as repo.Note:At first, I always couldn't get the repo script resources according to what I did on the Internet. I said the connection failed. The major reason is that the version number is changing and the previous version is gone, therefore, you can only view the latest one on the Internet by yourself.In addition:I did not do anything about replacing HTTPS with HTTP on the Internet. I did not do anything about it. I did everything I did on Google Android, as long as the repo writes are consistent with the following command line input.
6. Set repo Permissions
$ Chmod A + x ~ /Bin/Repo
7. CreateSource codeStored project path
$ Mkdir working_directory $ CD working_directory
8. Start download SourceCodeRight
$ Repo init-u https://android.googlesource.com/platform/manifest
$ Repo sync
Refer:
1. Perfect download of Android system source code
2. Google Android: downloading the source tree