google官网
http://source.android.com/source/downloading.html上的地址根本不可用
- curl http://git-repo.googlecode.com/files/repo-1.13 > ~/bin/repo
- chmod a+x ~/bin/repo
- PATH=~/bin:$PATH
- mkdir WORKING_DIRECTORY
- cd WORKING_DIRECTORY
- repo init -u git://codeaurora.org/platform/manifest.git
- repo sync
- repo init -u git://codeaurora.org/platform/manifest.git -b android-4.2_r1(可选)
- repo sync(可选)