清華大學開源軟件鏡像站
下載 repo 工具
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
修改 repo 地址
google的地址 REPO_URL = 'https://gerrit.googlesource.com/git-repo'
改為清華大學的地址 REPO_URL = 'git://aosp.tuna.tsinghua.edu.cn/git-repo'
建立工作目錄
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
下載 manifest
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest
或者
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-4.4.2_r1
同步源碼
repo sync
最后編輯于 :
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者