This article was reproduced from: http://www.enjoydiy.com/608.html
We can download the Android source code from the https://www.codeaurora.org/website.
Here's how:
Download repo and set environment variables
$ curl "Http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo
$ chmod a+x ~/bin/repo
$ Path=~/bin: $PATH
Download Android source code
$ mkdir working_directory
$CD working_directory
$ repo init-u git://codeaurora.org/platform/manifest.git-b Gingerbread
$ repo Sync
Ps:repo is just a scripting tool. You can download repo tools from anywhere, such as
http://code.google.com/p/git-repo/
But how to download the Android source code, you need to open the repo file, the beginning of the file
Repo_url= ' Git://android.git.kernel.org/tools/repo.git '
This address for other can download source code address long enough, the above download repo is to
Repo_url= ' Git://android.git.kernel.org/tools/repo.git '
Replaced by
Repo_url= ' Git://codeaurora.org/tools/repo.git '
Repo tool download and Android code download "Go"