轉自: html
同步、更新、下載Android Source & SDK from 國內鏡像站 android
Download the android source from china mirrors git
之前都是從Google的站點下載同步更新的,可是如今有了國內的鏡像站點就好多了 瀏覽器
幫助 https://wiki.tuna.tsinghua.edu.cn/MirrorUsage/android fetch
倉庫地址: google
git://aosp.tuna.tsinghua.edu.cn/android/ spa
使用瀏覽器訪問: code
http://aosp.tuna.tsinghua.edu.cn/android/ orm
清華大學 android source 鏡像站 目錄結構圖 xml
1、下載android 源碼
1.下載 repo
git://aosp.tuna.tsinghua.edu.cn/android/git-repo.git/
2. 修改repo
google的地址
REPO_URL= 'https://gerrit.googlesource.com/git-repo'
改成清華大學的地址
REPO_URL= 'git://aosp.tuna.tsinghua.edu.cn/android/git-repo'
3.下載 manifest
google 的地址
$ repo init -u https://android.googlesource.com/platform/manifest
改成清華大學的地址
$ repo init -u git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest
4.同步源碼
仍是和之前同樣
5.替換已有的AOSP源代碼的remote
若是你以前已經經過某種途徑得到了AOSP的源碼,可是你但願之後經過TUNA同步,只須要將.repo/manifest.xml中的
fetch=".." review="https://android-review.googlesource.com/" />
改成下面的code便可:
fetch="git://aosp.tuna.tsinghua.edu.cn/android/" review="https://android-review.googlesource.com/" />
這個方法也能夠用來在同步Cyanogenmod代碼的時候從TUNA同步部分代碼
2、 下載更新Android Android SDK
鏡像站點:http://mirrors.neusoft.edu.cn/
配置步驟