Using Cygwin to get the Android source code under Windows

Source: Internet
Author: User
Tags curl
using Cygwin to get the Android source code under WindowsWindows Android Git Python Firewall

Using Cygwin to get the Android source code under Windows

1, Prepare Cygwin environment , which should have curl, wget, Python and other basic tools.

2, Prepare source directory (such as: C:\myeclair), into the Cygwin shell environment, execute the following command: Java code//change directory location to c:cd/cygdrive/c////Create a directory of source code, and R EPO commands stored directory mkdir myeclair myeclair/bin//Enter source code storage directory CD Myeclair

3, Install the repo tool , Repo is written in the Python language to obtain the Android source code command-line tools, execute the following command to install: Java code//save repo file to the bin directory Curl http://android . Git.kernel.org/repo >bin/repo//modify repo file as executable chmod a+x Bin/repo

Open the repo file and modify the first line of content:

Modify the Repo_url=git:// to http:// (this is mainly because the GIT://protocol does not pass through the agent service/firewall).

4, initialize the version Library , execute the Repo command complete version library initialization: Java code//NOTE: The difference between the methods described here and the official documentation is that git://---> http:////We have added Eclair tag Bin/repo init-u http://android.git.kernel.org/platform/manifest.git-b Eclair

Note: Android versions and their code lists:

1.5 Cupcake
1.6 Donut
2.0/2.1 Eclair
2.2 Froyo
2.3 Gingerbread

5, synchronized version Library , which is the download that really starts the source code. First modify the . Repo/manifest.xml file to modify git:// to http://. Then execute the following command: Java code  

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.