Android source code download method (Git clone), androidgit
Android source code will be used by Android Developers sooner or later. I learned it from a Daniel, so I will record it and share it with readers. I hope it will be useful to readers.
You need to use Git-related knowledge here. If you are not clear about it, you can read it first. If you understand it, you can skip it.
Http://www.cnblogs.com/popfisher/p/5466174.html
Perform the following four steps:Clone of platform/frameworks/base project
1. Google stores the Git repository of Android
Http://android.kvmpool.com/
Open the above link to see the following directory structure
2. Download the key file
Key File is
Http://doc.kvmpool.com/id_rsa
There are two clone methods:A. if cloning is performed using the command line, you only need to temporarily replace the id_rsa file. the id_rsa file in the ssh directory, and then execute git clone xxx command B. if tortoisegitis used, use the puttygen.exe tool (in the bin directory of the TortoiseGit installation directory) and the id_rsa file to generate the corresponding ppk file.
(This method is used in this article)Generate ppk method (there are also a lot of methods for searching online)
3. Clone the Child Project platform/frameworks/base
A. Command Line clone Project
git clone android@android.kvmpool.com:mirror/platform/frameworks/base
B. Clone the TortoiseGit Client
Click OK to start code cloning.
4. Switch to the code of the specified branch. Here I switch to the code of android6.0.
This completes the source code download for platform, frameworks, and base. If you need other projects, you can refer to the same steps.
If it is useful, give a thumbs up and encouragement.