1.准备工具:
安装git和curl 在终端窗口敲下面的命令:
sudo apt-get install git-core curl
安装repo脚本
curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo"> ~/bin/repo
给repo可执行权限
chmod a+x ~/bin/repo
PATH=~/bin:&PATH
2.下载android源代码 (这里默认下载gingerbread Android2.3版本)
cd your_download_folder
repo init -u git://codeaurora.org/platform/manifest.git -b gingerbread
repo sync
原文地址:http://blog.csdn.net/cao527121128/article/details/44862153