Android使用Git管理源代码的,在Linux下咱们能够使用ubuntu来获取系统源码,下面我就逐步介绍在Windows些如何获取Android系统源码了。 android
一。安装msysGit git
在google的http://code.google.com/p/msysgit/中这样介绍到: github
If you just want to use Git to do your version control in Windows, you will need to download Git for Windows, run the installer, and you are ready to start. Note: Git for Windows is a project run by volunteers, so if you want it to improve, volunteer! shell … ubuntu If you want to download and install the complete source code of Git for Windows (including C compiler) to start hacking, you will need to install the full development system which is called msysGit. app |
注释:若是你须要使用Git工具在Windows下进行版本控制,你能够使用基于Windows的Git,这里提供了msysGit的安装下载。 工具
咱们选择full安装版本,http://code.google.com/p/msysgit/downloads/detail?name=msysGit-fullinstall-1.7.3.1-preview20101002.exe。 网站
下载msysGit安装包后安装,在安装过程当中msysGit会自动的安装或编译基于Windows环境的Git。编译Git须要点时间,安装完后截图以下: google
这就是Git的shell窗口,你能够在其中经过命名行操做下载获得Android的系统源码,下面就以Lunacher——桌面——为例下载源码。 spa
二。下载Luancher源码
Android系统源码都在http://android.git.kernel.org/网址下,其中那个系统app都在platform/packages/apps结构下。
链接还有:https://github.com/Android 此网站能够直接下载zip 压缩包, https://android.googlesource.com/
在刚才的Git的shell命名行窗口中输入下面的命名:
git clone git://android.git.kernel.org/platform/packages/apps/Luancher2.git
对于其余的app系统源码的获取方法和上述的Luancher相同,只是命名行后的参数不一样。
git clone git://android.git.kernel.org/需下载源码的app所在的位置。 |
三。启动msysGit
有些朋友在关闭了msysGit命名行窗口后就找不到从新打开的连接了,不用着急,你只须要在你安装的msysGit路径下双击执行msys.bat文件便可。
全部的都大功告成了。