repo管理的manifest總庫,可以查git倉庫有哪些
https://android.googlesource.com/platform/manifest
國內(nèi)鏡像
git://mirrors.ustc.edu.cn/aosp/platform/manifest
https://aosp.tuna.tsinghua.edu.cn/platform/manifest
分支名查詢地址
https://source.android.com/setup/start/build-numbers#source-code-tags-and-builds
變換方法
https://android.googlesource.com/platform/frameworks/base
直接一步到位,命令簡單,容易中途失敗
git clone -b android-8.0.0_r46 https://aosp.tuna.tsinghua.edu.cn/platform/frameworks/base
多步法铃肯,git協(xié)議頭速度快,fetch斷了可以斷點(diǎn)續(xù)傳
mkdir aosp
cd aosp
mkdir frameworks\base
cd frameworks\base
git init
git remote add origin git://mirrors.ustc.edu.cn/aosp/platform/frameworks/base
git fetch origin android-8.0.0_r46
git checkout -b b8.0.0_r46 FETCH_HEAD