(1)git Tag 和 Build.
git 版本地址:http://source.android.com/source/build-numbers.html#top
下载地址:https://developers.google.com/android/nexus/images
通过tag抓取不同的分支
比如:获取源码 tag版本:android-4.3_r2.3 ,发布版本号:JSS15R
repo init -u https://android.googlesource.com/platform/manifest -b android-4.3_r2.3
如果要获取KOT49E 版本,而源码 tag是:android-4.4.1_r1
repo init -u https://android.googlesource.com/platform/manifest -bandroid-4.4.1_r1
注意:在下载 source code 时,需要注意2个问题。
a)Staying Authenticated - Linux and Mac OS X
machine android-review.googlesource.com login git- mailname.sina.com password 1/5Jj3achax
- 步骤如下:
machine android.googlesource.com login git-mailname.sina.com password 1/5Jj3achaxSmO0t
machine android-review.googlesource.com login git-mailname.sina.com password 1/5Jj3achaxSm
b)加入hosts,以便网络下载问题。
- 具体如下:
sudo gedit /etc/hosts
74.125.31.82 www.googlesource.com
74.125.31.82 android.googlesource.com
203.208.46.172 cache.pack.google.com
59.24.3.173cache.pack.google.com
参考:
http://blog.csdn.net/oathevil/article/details/9294217
http://blog.csdn.net/yanzi1225627/article/details/9255457
(2)ROM
下载地址:https://developers.google.com/android/nexus/images#razorjss15q
(3)CM下载地址:http://download.cyanogenmod.org/?device=exhilarate&type=nightly