$mkdir /home/android //创建工作目录
$cd /home/android
$mkdir bin
//下载安装repo版本管理工具:
$curl http://android.git.kernel.org/repo> ./bin/repo
$cd bin
$chmod a+x repo
准备下载Android:
$cd /home/android
$python ./bin/repo init -u git://android.git.kernel.org/platform/manifest.git –b cupcake
$git config --global user.email "xxxxx@xxxxxxx"
$git config --global user.name "xxxxxx"
邮箱地址填有效邮箱即可,我试过,其实这步跳过也没有问题。
//下载源码:
$python repo sync