Android source code download method (Git clone), androidgit

Source: Internet
Author: User

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.

 

 

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.