想研究下Android源码?但是苦于源码下载需要翻墙?
本脚本一键设置国内镜像并自动开始下载aosp源码
直接按顺序输入以下命令即可开始下载aosp
curl https://raw.githubusercontent.com/myth-china/aospdl/main/aospdl.sh > aospdl.sh
chmod a+x aospdl.sh
./aospdl.sh
使用的国内镜像:https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
repo脚本位置: ~/bin/repo
aosp目录位置: ~/aosp