美文网首页
清华团下载Android源码

清华团下载Android源码

作者: 匡风含情 | 来源:发表于2017-06-05 11:19 被阅读27次

清华大学开源软件镜像站

下载 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

相关文章

网友评论

      本文标题:清华团下载Android源码

      本文链接:https://www.haomeiwen.com/subject/cedifxtx.html