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