from:http://blog.csdn.net/kevinacc/article/details/6882907


众所周知的原因,现在不能官方的地址下载android源码。repo都无法下载,用别人的,或者已有的,提示

[text] view plain copy
  1. Connection refused  


网上折腾了一下,找到了一个代替的方法,目前正在下载中~~~


原因是不久前 Kernel.org 被黑掉,外国人建立的一个镜像源。

方法如下,缺点是速度比较慢。

I will describe another way to get the Android source codes if you hadn’t already cloned it’s repo before kernel.org servers went down.

Prepare the environment

[html] view plain copy
  1. curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo  

  2. chmod a+x ~/bin/repo  

  3. PATH=~/bin:$PATH  


First, you need to download “repo” script from kernel.org my blog (please,enclose the URL address in double quotes):

Download the Android repository

Now, you can safely download the repository, like so:

[html] view plain copy
  1. mkdir WORKING_DIRECTORY  

  2. cd WORKING_DIRECTORY  

  3. repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread  

  4. repo sync  




and start the development…