清华TUNA镜像源下载Android源码的方法

来源:互联网 发布:淘宝联盟可以相信吗 编辑:程序博客网 时间:2024/06/05 06:10

本文在写作时是测试成功的,建议参考以下网页
Google教程:
https://source.android.com/source/downloading.html
TUNA的AOSP使用帮助:
https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/


安装GIT(Ubuntu)

sudo apt-get install git

源码下载

下载 repo 工具:

mkdir ~/binPATH=~/bin:$PATHcurl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repochmod a+x ~/bin/repo

建立工作目录:

mkdir WORKING_DIRECTORYcd 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

查看Android版本编号:
本文最后一部分有更新于2016.04.28Android5.0.1-6.0.1的版本号
来源:https://source.android.com/source/build-numbers.html#source-code-tags-and-builds

开始同步:

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
0 0
原创粉丝点击