國內映象加速 Android 原始碼下載
阿新 • • 發佈:2019-02-05
1.下載修改好的repo,密碼:rb5t;
http://pan.baidu.com/share/link?shareid=1957716801&uk=2169647266
2.開啟終端,輸入:
mkdir ~/bin
PATH=~/bin:$PATH
3.將repo放入~/bin目錄下;
4.賦予執行許可權,終端輸入:
chmod a+x ~/bin/repo
5.建立android原始碼存放目錄:
mkdir android_source
cd android_source
6.檢視想要下載的原始碼的Tag和Builds,網址:https://source.android.com/source/build-numbers.html#source-code-tags-and-builds
BuildBranch VersionSupported devices
MRA58Kandroid-6.0.0_r1MarshmallowNexus 5, Nexus 6, Nexus 7 (flo/deb), Nexus 9 (volantis/volantisg), Nexus Player
LMY48Wandroid-5.1.1_r24LollipopNexus 6
LVY48Handroid-5.1.1_r23LollipopNexus 6 (For Project Fi ONLY)
LYZ28Mandroid-5.1.1_r22LollipopNexus 6 (For T-Mobile ONLY)
LMY48Uandroid-5.1.1_r20LollipopNexus 7 (deb)
LMY48Tandroid-5.1.1_r19LollipopNexus 4, Nexus 6, Nexus 9 (volantis/volantisg), Nexus 10
LVY48Fandroid-5.1.1_r18LollipopNexus 6 (For Project Fi ONLY)
LYZ28Kandroid-5.1.1_r17LollipopNexus 6 (For T-Mobile ONLY)
LMY48Pandroid-5.1.1_r16LollipopNexus 7 (deb)
LMY48Nandroid-5.1.1_r15LollipopNexus Player
LMY48Mandroid-5.1.1_r14LollipopNexus 4, Nexus 5, Nexus 6, Nexus 7 (flo), Nexus 9 (volantis/volantisg), Nexus 10
LVY48Eandroid-5.1.1_r13LollipopNexus 6 (For Project Fi ONLY)
LYZ28Jandroid-5.1.1_r12LollipopNexus 6 (For T-Mobile ONLY)
LMY48Jandroid-5.1.1_r10LollipopNexus Player
LMY48Iandroid-5.1.1_r9LollipopNexus 4, Nexus 5, Nexus 6, Nexus 7 (flo), Nexus 9 (volantis/volantisg), Nexus 10
LVY48Candroid-5.1.1_r8LollipopNexus 6 (For Project Fi ONLY)
LMY48Gandroid-5.1.1_r6LollipopNexus 7 (flo)
LYZ28Eandroid-5.1.1_r5LollipopNexus 6 (For T-Mobile ONLY)
LMY47Zandroid-5.1.1_r4LollipopNexus 6 (All carriers except T-Mobile US)
LMY48Bandroid-5.1.1_r3LollipopNexus 5
LMY47Xandroid-5.1.1_r2LollipopNexus 9 (volantis)
LMY47Vandroid-5.1.1_r1LollipopNexus 7 (flo/grouper), Nexus 10, Nexus Player
LMY47Oandroid-5.1.0_r5LollipopNexus 4, Nexus 7 (flo/deb)
LMY47Mandroid-5.1.0_r4LollipopNexus 6 (For T-Mobile ONLY)
LMY47Iandroid-5.1.0_r3LollipopNexus 5, Nexus 6
LMY47Eandroid-5.1.0_r2LollipopNexus 6
LMY47Dandroid-5.1.0_r1LollipopNexus 5, Nexus 6, Nexus 7 (grouper/tilapia), Nexus 10, Nexus Player
LRX22Landroid-5.0.2_r3LollipopNexus 9 (volantis/volantisg)
LRX22Gandroid-5.0.2_r1LollipopNexus 7 (flo/deb/grouper/tilapia), Nexus 10
LRX22Candroid-5.0.1_r1LollipopNexus 4, Nexus 5, Nexus 6 (shamu), Nexus 7 (flo), Nexus 9 (volantis/volantisg), Nexus 10
LRX21Vandroid-5.0.0_r7.0.1LollipopNexus Player (fugu)
LRX21Tandroid-5.0.0_r6.0.1LollipopNexus 4
LRX21Randroid-5.0.0_r5.1.0.1LollipopNexus 9 (volantis)
LRX21Qandroid-5.0.0_r5.0.1LollipopNexus 9 (volantis)
LRX21Pandroid-5.0.0_r4.0.1LollipopNexus 7 (flo/grouper), Nexus 10
LRX21Oandroid-5.0.0_r3.0.1LollipopNexus 5 (hammerhead), Nexus 6 (shamu)
LRX21Mandroid-5.0.0_r2.0.1LollipopNexus Player (fugu)
LRX21Landroid-5.0.0_r1.0.1LollipopNexus 9 (volantis)
KTU84Qandroid-4.4.4_r2KitKatNexus 5 (hammerhead) (For 2Degrees/NZ, Telstra/AUS and India ONLY)
KTU84Pandroid-4.4.4_r1KitKatNexus 5, Nexus 7 (flo/deb/grouper/tilapia), Nexus 4, Nexus 10
KTU84Mandroid-4.4.3_r1.1KitKatNexus 5 (hammerhead)
KTU84Landroid-4.4.3_r1KitKatNexus 7 (flo/deb/grouper/tilapia), Nexus 4, Nexus 10
KVT49Landroid-4.4.2_r2KitKatNexus 7 (deb Verizon)
KOT49Handroid-4.4.2_r1KitKatNexus 5, Nexus 7 (flo/deb/grouper/tilapia), Nexus 4, Nexus 10
KOT49Eandroid-4.4.1_r1KitKatNexus 5, Nexus 7 (flo/deb/grouper/tilapia), Nexus 4, Nexus 10
KRT16Sandroid-4.4_r1.2KitKatNexus 7 (flo/deb/grouper/tilapia), Nexus 4, Nexus 10
KRT16Mandroid-4.4_r1KitKatNexus 5 (hammerhead)
JLS36Iandroid-4.3.1_r1Jelly BeanNexus 7 (deb)
JLS36Candroid-4.3_r3Jelly BeanNexus 7 (deb)
JSS15Randroid-4.3_r2.3Jelly BeanNexus 7 (flo)
JSS15Qandroid-4.3_r2.2Jelly BeanNexus 7 (flo)
JSS15Jandroid-4.3_r2.1Jelly BeanNexus 7 (flo/deb)
JSR78Dandroid-4.3_r2Jelly BeanNexus 7 (deb)
JWR66Yandroid-4.3_r1.1Jelly BeanGalaxy Nexus, Nexus 7 (grouper/tilapia), Nexus 4, Nexus 10
JWR66Vandroid-4.3_r1Jelly BeanGalaxy Nexus, Nexus 7 (grouper/tilapia), Nexus 4, Nexus 10
JWR66Nandroid-4.3_r0.9.1Jelly BeanGalaxy Nexus, Nexus 7 (grouper/tilapia/flo), Nexus 4, Nexus 10
JWR66Landroid-4.3_r0.9Jelly BeanNexus 7
JDQ39Eandroid-4.2.2_r1.2Jelly BeanNexus 4
JDQ39Bandroid-4.2.2_r1.1Jelly BeanNexus 7
JDQ39android-4.2.2_r1Jelly BeanGalaxy Nexus, Nexus 7, Nexus 4, Nexus 10
JOP40Gandroid-4.2.1_r1.2Jelly BeanNexus 4
JOP40Fandroid-4.2.1_r1.1Jelly BeanNexus 10
JOP40Dandroid-4.2.1_r1Jelly BeanGalaxy Nexus, Nexus 7, Nexus 4, Nexus 10
JOP40Candroid-4.2_r1Jelly BeanGalaxy Nexus, Nexus 7, Nexus 4, Nexus 10
JZO54Mandroid-4.1.2_r2.1Jelly Bean
JZO54Landroid-4.1.2_r2Jelly Bean
JZO54Kandroid-4.1.2_r1Jelly BeanNexus S, Galaxy Nexus, Nexus 7
JRO03Sandroid-4.1.1_r6.1Jelly BeanNexus 7
JRO03Randroid-4.1.1_r6Jelly BeanNexus S 4G
JRO03Oandroid-4.1.1_r5Jelly BeanGalaxy Nexus
JRO03Landroid-4.1.1_r4Jelly BeanNexus S
JRO03Handroid-4.1.1_r3Jelly Bean
JRO03Eandroid-4.1.1_r2Jelly BeanNexus S
JRO03Dandroid-4.1.1_r1.1Jelly BeanNexus 7
JRO03Candroid-4.1.1_r1Jelly BeanGalaxy Nexus
IMM76Landroid-4.0.4_r2.1Ice Cream Sandwich
IMM76Kandroid-4.0.4_r2Ice Cream SandwichGalaxy Nexus
IMM76Iandroid-4.0.4_r1.2Ice Cream SandwichGalaxy Nexus
IMM76Dandroid-4.0.4_r1.1Ice Cream SandwichNexus S, Nexus S 4G, Galaxy Nexus
IMM76android-4.0.4_r1Ice Cream Sandwich
IML77android-4.0.3_r1.1Ice Cream Sandwich
IML74Kandroid-4.0.3_r1Ice Cream SandwichNexus S
ICL53Fandroid-4.0.2_r1Ice Cream SandwichGalaxy Nexus
ITL41Fandroid-4.0.1_r1.2Ice Cream SandwichGalaxy Nexus
ITL41Dandroid-4.0.1_r1.1Ice Cream SandwichGalaxy Nexus
ITL41Dandroid-4.0.1_r1Ice Cream SandwichGalaxy Nexus
GWK74android-2.3.7_r1GingerbreadNexus S 4G
GRK39Fandroid-2.3.6_r1GingerbreadNexus One, Nexus S
GRK39Candroid-2.3.6_r0.9GingerbreadNexus S
GRJ90android-2.3.5_r1GingerbreadNexus S 4G
GRJ22android-2.3.4_r1GingerbreadNexus One, Nexus S, Nexus S 4G
GRJ06Dandroid-2.3.4_r0.9GingerbreadNexus S 4G
GRI54android-2.3.3_r1.1GingerbreadNexus S
GRI40android-2.3.3_r1GingerbreadNexus One, Nexus S
GRH78Candroid-2.3.2_r1GingerbreadNexus S
GRH78android-2.3.1_r1GingerbreadNexus S
GRH55android-2.3_r1Gingerbreadearliest Gingerbread version, Nexus S
FRK76Candroid-2.2.3_r2Froyo
FRK76android-2.2.3_r1Froyo
FRG83Gandroid-2.2.2_r1FroyoNexus One
FRG83Dandroid-2.2.1_r2FroyoNexus One
FRG83android-2.2.1_r1FroyoNexus One
FRG22Dandroid-2.2_r1.3Froyo
FRG01Bandroid-2.2_r1.2Froyo
FRF91android-2.2_r1.1FroyoNexus One
FRF85Bandroid-2.2_r1FroyoNexus One
EPF21Bandroid-2.1_r2.1p2Eclair
ESE81android-2.1_r2.1sEclair
EPE54Bandroid-2.1_r2.1pEclairNexus One
ERE27android-2.1_r2EclairNexus One
ERD79android-2.1_r1EclairNexus One
ESD56android-2.0.1_r1Eclair
ESD20android-2.0_r1Eclair
DMD64android-1.6_r1.5Donut
DRD20android-1.6_r1.4
DRD08android-1.6_r1.3
DRC92android-1.6_r1.2
Android原始碼Tags和Builds
7.例如我要下載android-5.1.1_r3,就在終端輸入:
repo init -u git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest -b android-5.1.1_r3
8.終端輸入下面命令使用repo開始原始碼下載同步,-j4表示併發數為4,清華映象只支援最大併發數4:
repo sync -j4
http://pan.baidu.com/share/link?shareid=1957716801&uk=2169647266
2.開啟終端,輸入:
mkdir ~/bin
PATH=~/bin:$PATH
3.將repo放入~/bin目錄下;
4.賦予執行許可權,終端輸入:
chmod a+x ~/bin/repo
5.建立android原始碼存放目錄:
mkdir android_source
cd android_source
6.檢視想要下載的原始碼的Tag和Builds,網址:https://source.android.com/source/build-numbers.html#source-code-tags-and-builds
BuildBranch VersionSupported devices
MRA58Kandroid-6.0.0_r1MarshmallowNexus 5, Nexus 6, Nexus 7 (flo/deb), Nexus 9 (volantis/volantisg), Nexus Player
LMY48Wandroid-5.1.1_r24LollipopNexus 6
LVY48Handroid-5.1.1_r23LollipopNexus 6 (For Project Fi ONLY)
LYZ28Mandroid-5.1.1_r22LollipopNexus 6 (For T-Mobile ONLY)
LMY48Uandroid-5.1.1_r20LollipopNexus 7 (deb)
LMY48Tandroid-5.1.1_r19LollipopNexus 4, Nexus 6, Nexus 9 (volantis/volantisg), Nexus 10
LVY48Fandroid-5.1.1_r18LollipopNexus 6 (For Project Fi ONLY)
LYZ28Kandroid-5.1.1_r17LollipopNexus 6 (For T-Mobile ONLY)
LMY48Pandroid-5.1.1_r16LollipopNexus 7 (deb)
LMY48Nandroid-5.1.1_r15LollipopNexus Player
LMY48Mandroid-5.1.1_r14LollipopNexus 4, Nexus 5, Nexus 6, Nexus 7 (flo), Nexus 9 (volantis/volantisg), Nexus 10
LVY48Eandroid-5.1.1_r13LollipopNexus 6 (For Project Fi ONLY)
LYZ28Jandroid-5.1.1_r12LollipopNexus 6 (For T-Mobile ONLY)
LMY48Jandroid-5.1.1_r10LollipopNexus Player
LMY48Iandroid-5.1.1_r9LollipopNexus 4, Nexus 5, Nexus 6, Nexus 7 (flo), Nexus 9 (volantis/volantisg), Nexus 10
LVY48Candroid-5.1.1_r8LollipopNexus 6 (For Project Fi ONLY)
LMY48Gandroid-5.1.1_r6LollipopNexus 7 (flo)
LYZ28Eandroid-5.1.1_r5LollipopNexus 6 (For T-Mobile ONLY)
LMY47Zandroid-5.1.1_r4LollipopNexus 6 (All carriers except T-Mobile US)
LMY48Bandroid-5.1.1_r3LollipopNexus 5
LMY47Xandroid-5.1.1_r2LollipopNexus 9 (volantis)
LMY47Vandroid-5.1.1_r1LollipopNexus 7 (flo/grouper), Nexus 10, Nexus Player
LMY47Oandroid-5.1.0_r5LollipopNexus 4, Nexus 7 (flo/deb)
LMY47Mandroid-5.1.0_r4LollipopNexus 6 (For T-Mobile ONLY)
LMY47Iandroid-5.1.0_r3LollipopNexus 5, Nexus 6
LMY47Eandroid-5.1.0_r2LollipopNexus 6
LMY47Dandroid-5.1.0_r1LollipopNexus 5, Nexus 6, Nexus 7 (grouper/tilapia), Nexus 10, Nexus Player
LRX22Landroid-5.0.2_r3LollipopNexus 9 (volantis/volantisg)
LRX22Gandroid-5.0.2_r1LollipopNexus 7 (flo/deb/grouper/tilapia), Nexus 10
LRX22Candroid-5.0.1_r1LollipopNexus 4, Nexus 5, Nexus 6 (shamu), Nexus 7 (flo), Nexus 9 (volantis/volantisg), Nexus 10
LRX21Vandroid-5.0.0_r7.0.1LollipopNexus Player (fugu)
LRX21Tandroid-5.0.0_r6.0.1LollipopNexus 4
LRX21Randroid-5.0.0_r5.1.0.1LollipopNexus 9 (volantis)
LRX21Qandroid-5.0.0_r5.0.1LollipopNexus 9 (volantis)
LRX21Pandroid-5.0.0_r4.0.1LollipopNexus 7 (flo/grouper), Nexus 10
LRX21Oandroid-5.0.0_r3.0.1LollipopNexus 5 (hammerhead), Nexus 6 (shamu)
LRX21Mandroid-5.0.0_r2.0.1LollipopNexus Player (fugu)
LRX21Landroid-5.0.0_r1.0.1LollipopNexus 9 (volantis)
KTU84Qandroid-4.4.4_r2KitKatNexus 5 (hammerhead) (For 2Degrees/NZ, Telstra/AUS and India ONLY)
KTU84Pandroid-4.4.4_r1KitKatNexus 5, Nexus 7 (flo/deb/grouper/tilapia), Nexus 4, Nexus 10
KTU84Mandroid-4.4.3_r1.1KitKatNexus 5 (hammerhead)
KTU84Landroid-4.4.3_r1KitKatNexus 7 (flo/deb/grouper/tilapia), Nexus 4, Nexus 10
KVT49Landroid-4.4.2_r2KitKatNexus 7 (deb Verizon)
KOT49Handroid-4.4.2_r1KitKatNexus 5, Nexus 7 (flo/deb/grouper/tilapia), Nexus 4, Nexus 10
KOT49Eandroid-4.4.1_r1KitKatNexus 5, Nexus 7 (flo/deb/grouper/tilapia), Nexus 4, Nexus 10
KRT16Sandroid-4.4_r1.2KitKatNexus 7 (flo/deb/grouper/tilapia), Nexus 4, Nexus 10
KRT16Mandroid-4.4_r1KitKatNexus 5 (hammerhead)
JLS36Iandroid-4.3.1_r1Jelly BeanNexus 7 (deb)
JLS36Candroid-4.3_r3Jelly BeanNexus 7 (deb)
JSS15Randroid-4.3_r2.3Jelly BeanNexus 7 (flo)
JSS15Qandroid-4.3_r2.2Jelly BeanNexus 7 (flo)
JSS15Jandroid-4.3_r2.1Jelly BeanNexus 7 (flo/deb)
JSR78Dandroid-4.3_r2Jelly BeanNexus 7 (deb)
JWR66Yandroid-4.3_r1.1Jelly BeanGalaxy Nexus, Nexus 7 (grouper/tilapia), Nexus 4, Nexus 10
JWR66Vandroid-4.3_r1Jelly BeanGalaxy Nexus, Nexus 7 (grouper/tilapia), Nexus 4, Nexus 10
JWR66Nandroid-4.3_r0.9.1Jelly BeanGalaxy Nexus, Nexus 7 (grouper/tilapia/flo), Nexus 4, Nexus 10
JWR66Landroid-4.3_r0.9Jelly BeanNexus 7
JDQ39Eandroid-4.2.2_r1.2Jelly BeanNexus 4
JDQ39Bandroid-4.2.2_r1.1Jelly BeanNexus 7
JDQ39android-4.2.2_r1Jelly BeanGalaxy Nexus, Nexus 7, Nexus 4, Nexus 10
JOP40Gandroid-4.2.1_r1.2Jelly BeanNexus 4
JOP40Fandroid-4.2.1_r1.1Jelly BeanNexus 10
JOP40Dandroid-4.2.1_r1Jelly BeanGalaxy Nexus, Nexus 7, Nexus 4, Nexus 10
JOP40Candroid-4.2_r1Jelly BeanGalaxy Nexus, Nexus 7, Nexus 4, Nexus 10
JZO54Mandroid-4.1.2_r2.1Jelly Bean
JZO54Landroid-4.1.2_r2Jelly Bean
JZO54Kandroid-4.1.2_r1Jelly BeanNexus S, Galaxy Nexus, Nexus 7
JRO03Sandroid-4.1.1_r6.1Jelly BeanNexus 7
JRO03Randroid-4.1.1_r6Jelly BeanNexus S 4G
JRO03Oandroid-4.1.1_r5Jelly BeanGalaxy Nexus
JRO03Landroid-4.1.1_r4Jelly BeanNexus S
JRO03Handroid-4.1.1_r3Jelly Bean
JRO03Eandroid-4.1.1_r2Jelly BeanNexus S
JRO03Dandroid-4.1.1_r1.1Jelly BeanNexus 7
JRO03Candroid-4.1.1_r1Jelly BeanGalaxy Nexus
IMM76Landroid-4.0.4_r2.1Ice Cream Sandwich
IMM76Kandroid-4.0.4_r2Ice Cream SandwichGalaxy Nexus
IMM76Iandroid-4.0.4_r1.2Ice Cream SandwichGalaxy Nexus
IMM76Dandroid-4.0.4_r1.1Ice Cream SandwichNexus S, Nexus S 4G, Galaxy Nexus
IMM76android-4.0.4_r1Ice Cream Sandwich
IML77android-4.0.3_r1.1Ice Cream Sandwich
IML74Kandroid-4.0.3_r1Ice Cream SandwichNexus S
ICL53Fandroid-4.0.2_r1Ice Cream SandwichGalaxy Nexus
ITL41Fandroid-4.0.1_r1.2Ice Cream SandwichGalaxy Nexus
ITL41Dandroid-4.0.1_r1.1Ice Cream SandwichGalaxy Nexus
ITL41Dandroid-4.0.1_r1Ice Cream SandwichGalaxy Nexus
GWK74android-2.3.7_r1GingerbreadNexus S 4G
GRK39Fandroid-2.3.6_r1GingerbreadNexus One, Nexus S
GRK39Candroid-2.3.6_r0.9GingerbreadNexus S
GRJ90android-2.3.5_r1GingerbreadNexus S 4G
GRJ22android-2.3.4_r1GingerbreadNexus One, Nexus S, Nexus S 4G
GRJ06Dandroid-2.3.4_r0.9GingerbreadNexus S 4G
GRI54android-2.3.3_r1.1GingerbreadNexus S
GRI40android-2.3.3_r1GingerbreadNexus One, Nexus S
GRH78Candroid-2.3.2_r1GingerbreadNexus S
GRH78android-2.3.1_r1GingerbreadNexus S
GRH55android-2.3_r1Gingerbreadearliest Gingerbread version, Nexus S
FRK76Candroid-2.2.3_r2Froyo
FRK76android-2.2.3_r1Froyo
FRG83Gandroid-2.2.2_r1FroyoNexus One
FRG83Dandroid-2.2.1_r2FroyoNexus One
FRG83android-2.2.1_r1FroyoNexus One
FRG22Dandroid-2.2_r1.3Froyo
FRG01Bandroid-2.2_r1.2Froyo
FRF91android-2.2_r1.1FroyoNexus One
FRF85Bandroid-2.2_r1FroyoNexus One
EPF21Bandroid-2.1_r2.1p2Eclair
ESE81android-2.1_r2.1sEclair
EPE54Bandroid-2.1_r2.1pEclairNexus One
ERE27android-2.1_r2EclairNexus One
ERD79android-2.1_r1EclairNexus One
ESD56android-2.0.1_r1Eclair
ESD20android-2.0_r1Eclair
DMD64android-1.6_r1.5Donut
DRD20android-1.6_r1.4
DRD08android-1.6_r1.3
DRC92android-1.6_r1.2
Android原始碼Tags和Builds
7.例如我要下載android-5.1.1_r3,就在終端輸入:
repo init -u git://aosp.tuna.tsinghua.edu.cn/android/platform/manifest -b android-5.1.1_r3
8.終端輸入下面命令使用repo開始原始碼下載同步,-j4表示併發數為4,清華映象只支援最大併發數4:
repo sync -j4
9.漫長的等待後,原始碼下載完畢。速度在200~800KB/s不等。
遇到下載失敗只需要重新執行步驟8即可。