下载安卓源码
安卓內核源碼下載教程
- 準備環境
- 如何選擇你想要下載的版本
- ubuntu環境配置
準備環境
如何選擇你想要下載的版本
根據自己的手機選擇適合的版本
ubuntu環境配置
git config --global user.name Your Name
git config --global user.email you@example.com`
3.繞過國內不能訪問外網限制
1.找到 /.bin下面的repo文件
2.搜索https://gerrit.googlesource.com/git-repo 將這個網址替換成國內的鏡像鏈接: https://mirrors.ustc.edu.cn/aosp/git-repo
4.創建文件夾保存下載的安卓代碼
cd android_source mkdir .repo //這里注意 將下載的git-repo拷貝到.repo下,并改名為 repo repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-4.0.1_r1 repo sync -c -j4android-4.0.1_r1 你可以選擇你自己的 看"如何選擇你想要下載的版本" 即可
總結
- 上一篇: cad文件管理服务器,CAD文件管理(Z
- 下一篇: silverlight4 开发必备