快速链接:
.
👉👉👉 [专栏目录]-环境搭建安装问题笔记目录 👈👈👈
- 付费专栏-付费课程 【购买须知】:
- 👉👉👉 个人博客笔记导读目录(全部) 👈👈👈
介绍下载android官方源码的方式:
- 使用每月更新的初始化包
- 传统初始化方法
1、使用每月更新的初始化包
下载初始化包—>repo sync
wget -c https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar # 下载初始化包
tar xf aosp-latest.tar
cd aosp # 解压得到的 AOSP 工程目录
repo sync # 正常同步一遍即可得到完整目录
此后可以坚持每天同步,并尽量选择凌晨等低峰时间
2、传统初始化方法
使用清华镜像源的repo
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo
chmod +x repo
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'
同步源码树
repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest
repo sync