下载repo文件
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
配置repo文件的权限
chmod a+x repo
配置默认REPO_URL(可以添加到 ~/.bashrc 文件末尾)
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
下载Android源码
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest
repo sync