Android 不同版本源码及ROM获取

来源:互联网 发布:win7怎么更改公用网络 编辑:程序博客网 时间:2024/04/29 10:57

(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

To stay authenticated by saving the password, append the following line to the ~/.netrc configuration file:
===========================================================================================================
浏览器登录https://android.googlesource.com/new-password,并用gmail帐号登录,得到如下信息。

machine android.googlesource.com login git-mailname.sina.com password 1/5Jj3achaxSmO
machine android-review.googlesource.com login git-mailname.sina.com password 1/5Jj3achax
===========================================================================================================
Make sure you have set the permissions on ~/.netrc so that only your user account can read the file. If your home directory is on a network filesystem, consider moving it to a local disk and making ~/.netrc a symbolic link to the local version.

  • 步骤如下:
sudo gedit  ~/.netrc

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

0 0
原创粉丝点击