清華TUNA映象源下載Android原始碼的方法
阿新 • • 發佈:2019-02-06
安裝GIT(Ubuntu)
sudo apt-get install git
原始碼下載
下載 repo 工具:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
建立工作目錄:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
初始化倉庫:
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest
或 repo init -u git://aosp.tuna.tsinghua.edu.cn/aosp/platform/manifest
如果提示無法連線到 gerrit.googlesource.com,可以編輯 ~/bin/repo,把 REPO_URL 一行替換成下面的:
REPO_URL = ‘https://gerrit-google.tuna.tsinghua.edu.cn/git-repo’
如果需要某個特定的 Android 版本(以android-4.0.1_r1為例):
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-4.0.1_r1
開始同步:
repo sync
接下來就是漫長的等待……
在校園網中下載速度會比較快
下載Android5.0原始碼壓縮成.tar.gz後有26GB,可以參考一下
Android 5.1.0 - 6.0.1 版本號
更新於2016.04.28
Build | Branch | Version | Supported devices |
---|---|---|---|
M5C14J | android-6.0.1_r31 | Marshmallow | Pixel C |
MOB30D | android-6.0.1_r30 | Marshmallow | Nexus 5, Nexus 6, Nexus 7 (flo/deb), Nexus 9 (volantis/volantisg), Nexus Player, and Android One |
MHC19Q | android-6.0.1_r24 | Marshmallow | Nexus 5X, Nexus 6P |
MHC19J | android-6.0.1_r22 | Marshmallow | Nexus 5X |
MHC19I | android-6.0.1_r21 | Marshmallow | Nexus 6P |
MMB29X | android-6.0.1_r20 | Marshmallow | Nexus 5, Nexus 6, Nexus 7 (deb), Nexus 9 (volantisg) |
MXC14G | android-6.0.1_r18 | Marshmallow | Pixel C |
MMB29V | android-6.0.1_r17 | Marshmallow | Nexus 5, Nexus 5X, Nexus 6, Nexus 6P, Nexus 7 (flo/deb), Nexus 9 (volantis/volantisg) |
MXB48T | android-6.0.1_r16 | Marshmallow | Pixel C |
MMB29U | android-6.0.1_r13 | Marshmallow | Nexus Player |
MMB29R | android-6.0.1_r12 | Marshmallow | Nexus 9 (volantis/volantisg) |
MMB29Q | android-6.0.1_r11 | Marshmallow | Nexus 5, Nexus 5X, Nexus 6, Nexus 6P, Nexus 7 (flo/deb) |
MMB29T | android-6.0.1_r10 | Marshmallow | Nexus Player |
MMB29S | android-6.0.1_r9 | Marshmallow | Nexus 5, Nexus 6, Nexus 9 (volantis/volantisg) |
MMB29P | android-6.0.1_r8 | Marshmallow | Nexus 5X, Nexus 6P |
MMB29O | android-6.0.1_r7 | Marshmallow | Nexus 7 (flo/deb) |
MXB48K | android-6.0.1_r5 | Marshmallow | Pixel C |
MXB48J | android-6.0.1_r4 | Marshmallow | Pixel C |
MMB29M | android-6.0.1_r3 | Marshmallow | Nexus 6P, Nexus Player |
MMB29K | android-6.0.1_r1 | Marshmallow | Nexus 5, Nexus 5X, Nexus 6, Nexus 7 (flo/deb), Nexus 9 (volantis/volantisg) |
MMB29N | android-6.0.0_r41 | Marshmallow | Nexus 6P |
MDB08M | android-6.0.0_r26 | Marshmallow | Nexus 5X, Nexus 6P |
MDB08L | android-6.0.0_r25 | Marshmallow | Nexus 5X, Nexus 6P |
MDB08K | android-6.0.0_r24 | Marshmallow | Nexus 6P |
MDB08I | android-6.0.0_r23 | Marshmallow | Nexus 5X |
MDA89E | android-6.0.0_r12 | Marshmallow | Nexus 5X |
MDA89D | android-6.0.0_r11 | Marshmallow | Nexus 6P |
MRA59B | android-6.0.0_r7 | Marshmallow | Nexus 7 (deb) |
MRA58X | android-6.0.0_r6 | Marshmallow | Nexus 6 |
MRA58V | android-6.0.0_r5 | Marshmallow | Nexus 7 (flo/deb) |
MRA58U | android-6.0.0_r4 | Marshmallow | Nexus 7 (flo) |
MRA58N | android-6.0.0_r2 | Marshmallow | Nexus 5, Nexus 6, Nexus 7 (flo/deb), Nexus 9 (volantis/volantisg), Nexus Player |
MRA58K | android-6.0.0_r1 | Marshmallow | Nexus 5, Nexus 6, Nexus 7 (flo/deb), Nexus 9 (volantis/volantisg), Nexus Player |
LMY49J | android-5.1.1_r37 | Lollipop | Nexus 10 |
LMY49I | android-5.1.1_r36 | Lollipop | Nexus 10 |
LMY49H | android-5.1.1_r35 | Lollipop | Nexus 10 |
LMY49G | android-5.1.1_r34 | Lollipop | Nexus 10 |
LMY49F | android-5.1.1_r33 | Lollipop | Nexus 9 (volantisg), Nexus 10 |
LMY48Z | android-5.1.1_r30 | Lollipop | Nexus 6, Nexus 7 (deb), Nexus 9 (volantisg), Nexus 10 |
LYZ28N | android-5.1.1_r28 | Lollipop | Nexus 6 (For T-Mobile ONLY) |
LMY48Y | android-5.1.1_r26 | Lollipop | Nexus 6 |
LMY48X | android-5.1.1_r25 | Lollipop | Nexus 6, Nexus 7 (deb), Nexus 9 (volantisg), Nexus 10 |
LMY48W | android-5.1.1_r24 | Lollipop | Nexus 6 |
LVY48H | android-5.1.1_r23 | Lollipop | Nexus 6 (For Project Fi ONLY) |
LYZ28M | android-5.1.1_r22 | Lollipop | Nexus 6 (For T-Mobile ONLY) |
LMY48U | android-5.1.1_r20 | Lollipop | Nexus 7 (deb) |
LMY48T | android-5.1.1_r19 | Lollipop | Nexus 4, Nexus 6, Nexus 9 (volantis/volantisg), Nexus 10 |
LVY48F | android-5.1.1_r18 | Lollipop | Nexus 6 (For Project Fi ONLY) |
LYZ28K | android-5.1.1_r17 | Lollipop | Nexus 6 (For T-Mobile ONLY) |
LMY48P | android-5.1.1_r16 | Lollipop | Nexus 7 (deb) |
LMY48N | android-5.1.1_r15 | Lollipop | Nexus Player |
LMY48M | android-5.1.1_r14 | Lollipop | Nexus 4, Nexus 5, Nexus 6, Nexus 7 (flo), Nexus 9 (volantis/volantisg), Nexus 10 |
LVY48E | android-5.1.1_r13 | Lollipop | Nexus 6 (For Project Fi ONLY) |
LYZ28J | android-5.1.1_r12 | Lollipop | Nexus 6 (For T-Mobile ONLY) |
LMY48J | android-5.1.1_r10 | Lollipop | Nexus Player |
LMY48I | android-5.1.1_r9 | Lollipop | Nexus 4, Nexus 5, Nexus 6, Nexus 7 (flo), Nexus 9 (volantis/volantisg), Nexus 10 |
LVY48C | android-5.1.1_r8 | Lollipop | Nexus 6 (For Project Fi ONLY) |
LMY48G | android-5.1.1_r6 | Lollipop | Nexus 7 (flo) |
LYZ28E | android-5.1.1_r5 | Lollipop | Nexus 6 (For T-Mobile ONLY) |
LMY47Z | android-5.1.1_r4 | Lollipop | Nexus 6 (All carriers except T-Mobile US) |
LMY48B | android-5.1.1_r3 | Lollipop | Nexus 5 |
LMY47X | android-5.1.1_r2 | Lollipop | Nexus 9 (volantis) |
LMY47V | android-5.1.1_r1 | Lollipop | Nexus 7 (flo/grouper), Nexus 10, Nexus Player |
LMY47O | android-5.1.0_r5 | Lollipop | Nexus 4, Nexus 7 (flo/deb) |
LMY47M | android-5.1.0_r4 | Lollipop | Nexus 6 (For T-Mobile ONLY) |
LMY47I | android-5.1.0_r3 | Lollipop | Nexus 5, Nexus 6 |
LMY47E | android-5.1.0_r2 | Lollipop | Nexus 6 |
LMY47D | android-5.1.0_r1 | Lollipop | Nexus 5, Nexus 6, Nexus 7 (grouper/tilapia), Nexus 10, Nexus Player |