Android 不同版本源码及ROM获取

(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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值