下载repo
$ mkdir -p ~/bin
$ curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
$ chmod +x ~/bin/repo
在~/.bashrc添加环境变量
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
新建源码下载目录
$ mkdir rock960-android
$ cd rock960-android
初始化
$ ~/bin/repo init -u https://github.com/96rocks/manifests.git -b rock960-box-7.1 -m rock960_box_7.1_release.xml
将.repo/manifest.xml 把其中的 aosp 这个 remote 的 fetch 从 https://android.googlesource.com 改为 https://aosp.tuna.tsinghua.edu.cn/
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="https://aosp.tuna.tsinghua.edu.cn" name="aosp"/>
<remote fetc