下载android源码

1,    安装git
sudo apt-get install git git-core(这个没有完全测试,以前下好了的)
2,    安装repo
curl http://android.git.kernel.org/repo > ~/bin/repo
3,建立本地目录
mkdir android
cd android

4,下载源码
repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo
repo sync

原文地址:https://www.cnblogs.com/simonshi/p/1780867.html