如何打Android的补丁包------how to patch android.How to fast apply R10.3.2 patches Here I take frameworks/base.git as an example, you can follow the same method for other gits. Assume you had unzipped R10.3.2 release package to /opt/imx-android-r10.3.2/. $ cd /opt/imx-android-r10.3.2/code/r10.3.2/platform/frameworks/base.git$ ls *.patch > series$ cd ~/myandroid/frameworks/base$ git quiltimport --patches /opt/imx-android-r10.3.2/code/r10.3.2/platform/frameworks/base.git If error happened when applying some patch, please use git apply to patch it separately, to do that follow the next example, using frameworks/base
$cd ~/myandroid/frameworks/base $git apply /opt/imx-android-r10.3.2/code/r10.3.2/platform/frameworks/base.git/0001-ENGR00133115-Support-MMS-streaming-playback-in-OMX-G.patchRepeat the last command with each patch under the folder.
google已经恢复了android代码获取 http://www.cnblogs.com/flyme/archive/2011/10/26/2224888.htmlGoogle已经恢复了android代码的获取,可以参看他的android source的官方网站 http://source.android.com/source/index.htmlTo check out a branch other than "master", specify it with -b:$ repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.7_r1Starting with Donut, the exact list of tags and builds is in the following table:Build Tag Notes DRC83 android-1.6_r1.1 earliest Donut version, ADP1, ADP2 DRC92 android-1.6_r1.2 DRD08 android-1.6_r1.3 DRD20 android-1.6_r1.4 DMD64 android-1.6_r1.5 latest Donut version ESD20 android-2.0_r1 earliest Eclair version ESD56 android-2.0.1_r1 ERD79 android-2.1_r1 Nexus One ERE27 android-2.1_r2 Nexus One EPE54B android-2.1_r2.1p Nexus One ESE81 android-2.1_r2.1s EPF21B android-2.1_r2.1p2 latest Eclair version FRF85B android-2.2_r1 earliest Froyo version, Nexus One FRF91 android-2.2_r1.1 Nexus One FRG01B android-2.2_r1.2 FRG22D android-2.2_r1.3 FRG83 android-2.2.1_r1 Nexus One FRG83D android-2.2.1_r2 Nexus One FRG83G android-2.2.2_r1 latest Froyo version, Nexus One GRH55 android-2.3_r1 earliest Gingerbread version, Nexus S GRH78 android-2.3.1_r1 Nexus S GRH78C android-2.3.2_r1 Nexus S GRI40 android-2.3.3_r1 Nexus One, Nexus S GRI54 android-2.3.3_r1.1 Nexus S GRJ06D android-2.3.4_r0.9 Nexus S 4G GRJ22 android-2.3.4_r1 Nexus One, Nexus S, Nexus S 4G GRJ90 android-2.3.5_r1 Nexus S 4G GRK39C android-2.3.6_r0.9 Nexus S GRK39F android-2.3.6_r1 Nexus One, Nexus S GWK74 android-2.3.7_r1 latest Gingerbread version, Nexus S 4G 回头试一下~
通过WINDOWS下的WIFI无线网卡去下载源码报下面的错误 ERROR:recv( ) error FATAL:failed to begin relaying via HTTP fatal:The remote end hung up unexceptedly error:cannot fetch platform/bionic Error:repo sync failed
http://bbs.chinaunix.net/thread-3623087-1-1.htmlgit diff newversion oldversion这里的newversion可以说是版本号,也可以是commit值。
//-----------------------------------
1, git diff branch_a..branch_b
2, git show <SHA1 ID>
http://blog.csdn.net/xqhrs232/article/details/7222319
如何查看下载的android源码是哪个版本的 编译的时候从makefile的信息中确实可以看到,另外还可以从git(.repo/manifest.xml)中查询,或者到build/core/version_plaform.mk中去查询plaform_version的定义值
http://blog.csdn.net/pochuanpiao/article/details/6996355
http://bbs.gfan.com/android-846770-1-1.html
Android 1.1 发布时间:发布于 2009 年 2 月
代表手机:T-MOBILE G1 Android 1.5 发布于 2009 年 5 月
代表手机:摩托罗拉CILQ Android 1.6 2009 年 9 月发布
代表手机:索尼爱立信 X10 Android 2.0 Eclair 2009 年 10 月 26 日
代表机型:摩托罗拉XT800,HTC G6 Android 2.1 Eclair
Android 2.1: 2009 年 10 月 26 日,又一个主要版本升级以创纪录的速度放出。这次,大版本升级到了Android 2.1 “Eclair.”
“FroYo”(冻酸奶)是 Android 2.2 这个伴随 Google Nexus One 发布的新版的最新代号
Android 2.1主要特性 提升硬件速度 更多屏幕以及分辨率选择 大幅度的用户界面改良 支持 Exchange活动墙纸 大幅改进虚拟键盘 蓝牙 2.1 Google 地图 3.1.2
Android 2.2 Froyo
谷歌于北京时间2010年5月20日晚上10:30点在旧金山Moscone会展中心举办Google I/O 2010大会第二天的会议,Google正式发布了代号是“froyo 冻酸奶”的Android操作系统2.2版。 相对于上一版本的 改变: 1、整体性能大幅度的提升 2、3G网络共享功能。 3、Flash的支持。 4、App2sd功能。 5、全新的软件商店。 6、更多的Web应用API接口的开发
Android 2.3 Gingerbread
北京时间12月7日凌晨,Google正式对外发布了他们的下一代智能手机操作系统Android 2.3也就被大家所熟知的Android Gingerbread系统。虽然在版本号方面Android 2.3相对于前作而言的提升并不算多,但是从功能以及界面的变化上来看还是十分明显的。 Android 2.3在界面方面的改变相对于之前的Android 2.2而言其变化并不算明显,其主要的变化来自于界面的配色方面。Android 2.3在配色方面更多的使用了绿色配色,例如状态栏、通话图标以及其他的一些功能图标。另外全新的系统在界面的反应速度方面相对于前作也有了一定程度的提升,现在大家使用Android系统将会觉得使用起来更为流畅。 Android 2.3在文字输入方面做了改进,以提高输入速度。首先改进了虚拟键盘,按键的颜色做了调整,更易于辨识。增强了输入法联想功能。数字输入的时候可以不用切换键盘,通过组合键来输入。 之前Android系统具备文本复制功能,但是操作方式不是很易用,这次做了改进。长按文本时会跳出选择范围的拨杆。
Android 2.4 Gingerbread
就像Android 2.0和2.1版本都使用Eclair(法式奶油夹心甜点)一样,Android 2.3和2.4将会共享Gingerbread(姜饼)代号。这两个版本之间的变化不会太大,但是会有不少功能更新。 目前已知的Android 2.4带来的更新包括更多的动画特调、更快的运行速度、软件通话降噪、视频聊天等。 Android 2.4系统不会是之前一直谣传的Android 3.0,其真正的版本号将会是Android 2.4。 蜂巢将会在2011年发布,尤其是在Android之父“Andy Rubin(安迪鲁宾)” 秀了搭载该系统的摩托罗拉平板机之后就更加确信这一点了,不过蜂巢究竟在何时发布,同时还会有别的什么设备一同面世,蜂巢之后又是什么系统,这些问题我们都不知道答案。 发布时间预计是2011年的2月14日至17日在巴塞罗那举办的MWC 2011移动通信世界大会中。
Android 3.0 Honeycomb
2011年2月3日凌晨,谷歌正式发布了专用于平板电脑的Android 3.0 Honeycomb系统。这是首个基于Android的平板电脑专用操作。首款采用Android3.0系统的是MOTO XOOM 。该机是摩托罗拉移动在2011年1月5日,在美国拉斯维加斯 CES电子消费展推出的旗下首款平板电脑。 3.0系统特性 ·专用于平板电脑 ·全新设计的UI增强网页浏览功能 ·n-app purchases功能 ·经过优化的Gmail电子邮箱; ·全面支持Google Maps
http://www.360doc.com/content/11/0601/13/474846_120941074.shtml
自己下载代码然后 git diff 吧
http://developer.android.com/sdk/android-2.3.4.html----可以对应简单地看看!!!
//=====================================================================//2012--2--2 xqh 今天记录一下可以成功下载Android源代码的过程可以参考Android官方网站的下载参考方式----http://source.android.com/source/downloading.html1。用curl命令去下载repo文件----通过代理上网用把自己的用户名跟密码做为参数带上curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repocurl -u <proxy_user_id>:<proxy_password> -x <proxy_server>:<proxy_port> https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
2。修改repo文件的可执行属性chmod a+x ~/bin/reporepo文件中的REPO_URL要不要修改成http或者https----两个都可以试一下
3。在当前打开的终端窗口下执行如下命令----限于通过代理上网的下载方式$ export HTTP_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>
$ export HTTPS_PROXY=http://<proxy_user_id>:<proxy_password>@<proxy_server>:<proxy_port>4。导出repo文件的路径到PATH环境变量并执行----repo init 不要去用git://android.git.kernel.org/platform/manifest.git 网址----因为已经挂了的网址$ PATH=~/bin:$PATH$ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1如果成功会要求输入你的用户名跟你的邮箱----方便联系到你,注意你要下的版本不一样后面带的版本号要对应改变5。得到./repo文件夹---如果正常的话这个文件夹的大小会变化注意观察一下6。下一步就是执行./repo sync文件同步了
如果同步的过程中有repo sync failed就重新执行./repo sync命令----一般是支持断点处重新下载的
//==================================================
//备注:1。我上面的方法是一般性的方法,不同的环境要对应修改
1》你准备存储源代码的路径
2》你上网代理用的用户名及密码及你机子的代理服务器地址跟端口号
3》你要下载的源代码版本
4》你自己的环境是否对上面用的命令都支持
If error happened when applying some patch, please use git apply to patch it separately, to do that follow the next example, using frameworks/base
$cd ~/myandroid/frameworks/base
$git apply /opt/imx-android-r10.3.2/code/r10.3.2/platform/frameworks/base.git/0001-ENGR00133115-Support-MMS-streaming-playback-in-OMX-G.patchRepeat the last command with each patch under the folder.
http://www.cnblogs.com/flyme/archive/2011/10/26/2224888.htmlGoogle已经恢复了android代码的获取,可以参看他的android source的官方网站 http://source.android.com/source/index.htmlTo check out a branch other than "master", specify it with -b:$ repo init -u https://android.googlesource.com/platform/manifest -b android-2.3.7_r1Starting with Donut, the exact list of tags and builds is in the following table:Build Tag Notes
DRC83 android-1.6_r1.1 earliest Donut version, ADP1, ADP2
DRC92 android-1.6_r1.2
DRD08 android-1.6_r1.3
DRD20 android-1.6_r1.4
DMD64 android-1.6_r1.5 latest Donut version
ESD20 android-2.0_r1 earliest Eclair version
ESD56 android-2.0.1_r1
ERD79 android-2.1_r1 Nexus One
ERE27 android-2.1_r2 Nexus One
EPE54B android-2.1_r2.1p Nexus One
ESE81 android-2.1_r2.1s
EPF21B android-2.1_r2.1p2 latest Eclair version
FRF85B android-2.2_r1 earliest Froyo version, Nexus One
FRF91 android-2.2_r1.1 Nexus One
FRG01B android-2.2_r1.2
FRG22D android-2.2_r1.3
FRG83 android-2.2.1_r1 Nexus One
FRG83D android-2.2.1_r2 Nexus One
FRG83G android-2.2.2_r1 latest Froyo version, Nexus One
GRH55 android-2.3_r1 earliest Gingerbread version, Nexus S
GRH78 android-2.3.1_r1 Nexus S
GRH78C android-2.3.2_r1 Nexus S
GRI40 android-2.3.3_r1 Nexus One, Nexus S
GRI54 android-2.3.3_r1.1 Nexus S
GRJ06D android-2.3.4_r0.9 Nexus S 4G
GRJ22 android-2.3.4_r1 Nexus One, Nexus S, Nexus S 4G
GRJ90 android-2.3.5_r1 Nexus S 4G
GRK39C android-2.3.6_r0.9 Nexus S
GRK39F android-2.3.6_r1 Nexus One, Nexus S
GWK74 android-2.3.7_r1 latest Gingerbread version, Nexus S 4G 回头试一下~
http://source.android.com/index.html
ERROR:recv( ) error
FATAL:failed to begin relaying via HTTP
fatal:The remote end hung up unexceptedly
error:cannot fetch platform/bionic
Error:repo sync failed
http://blog.csdn.net/qinlicang/article/details/6021239android有效下载源码方法
http://sqy6.chinaunix.com/space.php?uid=11770217&do=blog&id=395162
记得要修改.repo/manifest.xml ,把“git” 改成“http” 修改 .repo/manifest.xml (或manifests/default.xml )如下 fetch=http://android.git.kernel.org/