aosp源码下载

377 阅读1分钟

1.下载manifest

repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest

2.获取源码分支情况

cd .repo/manifests/
git branch -a
git pull  //会下拉非常多的分支列表,如需找到Android 15, git branch -a | grep 15,
找到 android-15.0.0_r9 分支

3.拉取代码

cd -
repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-15.0.0_r9
repo sync