Android原始碼下載教程
repo初始化
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
初始化倉庫:
如果需要某個特定的 Android 版本(列表):
同步原始碼樹(以後只需執行這條命令來同步):
repo sync
UCAS源下載
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
初始化倉庫:
repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest
如果提示無法連線到 gerrit.googlesource.com,可以編輯 ~/bin/repo,把 REPO_URL 一行替換成下面的:
如果需要某個特定的 Android 版本(Android 版本列表):
repo init -u git://mirrors.ustc.edu.cn/aosp/platform/manifest -b android-4.0.1_r1
同步原始碼樹(以後只需執行這條命令來同步):
repo sync