代码改变世界

快速的下载Android系统源码

2017-12-01 15:25  默契.  阅读(328)  评论(0)    收藏  举报
mkdir ~/bin
PATH=~/bin:$PATH
curl https:
//storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo chmod a+x ~/bin/repo mkdir WORKING_DIRECTORY cd WORKING_DIRECTORY git config --global user.name "admin" git config --global user.email "admin@example.com" repo init -u https://android.googlesource.com/platform/manifest repo init -u https://android.googlesource.com/platform/manifest -b android-8.0.0_r34 -depth=1 repo sync -c
-depth=1 指定git克隆深度,加快下载速度