下载Android源码

本文参考了 https://www.jianshu.com/p/001335490061,感谢作者分享。


git clone https://aosp.tuna.tsinghua.edu.cn/platform/manifest

cd manifest
git tag

#切到需要的分支
git checkout android-11.0.0_r9

#以要下载frameworks/base 为例
# 打开manifest目录下的default.xml文件
# 找到  <project path="frameworks/base" name="platform/frameworks/base" groups="pdk-cw-fs,pdk-fs" />
# 创建并进入目录 frameworks/base

git clone --depth 1 https://aosp.tuna.tsinghua.edu.cn/platform/frameworks/base
上一篇:Android Audio(八)—— AAudio


下一篇:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)