[HOW TO]-下载android官方源码
生活随笔
收集整理的這篇文章主要介紹了
[HOW TO]-下载android官方源码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
介紹下載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 repoexport 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參考-清華鏡像源
總結
以上是生活随笔為你收集整理的[HOW TO]-下载android官方源码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [How TO]-python venv
- 下一篇: [Issue Fixed]-Pulse