Android source code Retrieval

Source: Internet
Author: User
Tags git commands

There are many ways to obtain source code on the Internet. Here is just one of my operations. After the previous http://android.git.kernel.org/logs are unavailable, Google will be in the navigation bar.

The source code download function is re-activated on the site. Record a simple process for query

1. Install cygwin (windows, if not needed) http://cygwin.org/select two options including shell and dev during installation (if ndk development requires both)

2. Install repo (repo is actually a combination of git commands called internally) https://dl-ssl.google.com/dl/googlesource/git-repo/repo

Download the package and put it in the user directory of cygwin home.

3. Modify the downloaded repo file and change the REPO_URL = 'https: // code.google.com/p/git-repo/' to http.

The following steps in the remaining reference http://source.android.com/source/downloading.html

$ Mkdir ~ /Bin $ PATH = ~ /Bin: $ PATH $ chmod a + x ~ /Bin/repo $ mkdir WORKING_DIRECTORY $ cd WORKING_DIRECTORY

$ Repo init-u https://android.googlesource.com/platform/manifest

Complete Production

4. disable ssl Authentication

Common Errors in China

Error: 14090086: SSL routines: SSL3_GET_SERVER_CERTIFICATE: certificate verify faile d while accessing into config -- global http. sslVerify false again repo init-u https://android.googlesource.com/platform/manifest

You can also obtain the specific version code-B android2.3.1 _ r1.

 

5. Get code repo sync synchronously presented Engineering Code

I have executed this command several times and remember that the project will fail to be downloaded. I directly obtain each project separately.

Refer to the steps for obtaining the attachment separately and paste the cygwin command line in step net.

You can also obtain a single code as needed, which will be very small.

Http://files.cnblogs.com/feiyunfei/androidsourceproject.rar

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.