经过清华大学开源软件镜像站下载aosp的步骤

1.下载 repo 工具:并配置到path中html

mkdir ~/bin
PATH=~/bin:$PATH #至关于win配置到环境变量中
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo > ~/bin/repo
chmod a+x ~/bin/repo

2.创建工做目录:android

mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY

3.初始化仓库:git

repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest

 3.1curl

若是须要某个特定的 Android 版本(列表):工具

repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-4.0.1_r1

4.同步源码树(之后只需执行这条命令来同步):ui

repo sync
相关文章
相关标签/搜索