原文地址:http://php.webtutor.pl/en/2011/09/05/kernel-org-hacked-how-to-get-android-repo/

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

Prepare the environment

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

curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repochmod a+x ~/bin/repoPATH=~/bin:$PATH
Download the Android repository

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

mkdir WORKING_DIRECTORYcd WORKING_DIRECTORYrepo init -u git://codeaurora.org/platform/manifest.git -b gingerbreadrepo sync

10-29 23:47