AOSP 镜像下载

1. 下载 repo

mkdir ~/bin
PATH=~/bin:$PATH
curl https://isrc.iscas.ac.cn/mirror/repo -o ~/bin/repo
chmod a+x ~/bin/repo
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'

2. 初始化 repo 库

mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY

repo init -u https://isrc.iscas.ac.cn/mirror/aosp/platform/manifest

3. 同步

repo sync

Q&A

  1. 遇到问题: curl: (22) The requested URL returned error: 404 Not Found Server does not provide clone.bundle; ignoring.

忽略即可

results matching ""

    No results matching ""