免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1462 | 回复: 0
打印 上一主题 下一主题

如何拿到android的源代码 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-05 02:08 |只看该作者 |倒序浏览
这几天好像
http://source.android.com/
都没法访问,所以一直没拿到android的source code。无聊时看了下这个页面的快照,发现source还可以通过git拿的,赶快试了一下,发现git server是好用的,而且速度还不错。大家也可以通过下面的办法来取source code:

To install, initialize, and configure Repo, follow these steps:
Make sure you have a ~/bin directory in your home directory, and check to be sure that this bin directory is in your path:
  $ cd ~
  $ mkdir bin
  $ echo $PATH
Download the repo script and make sure it is executable:
$ curl
http://android.git.kernel.org/repo
>~/bin/repo
$ chmod a+x ~/bin/repo
Create an empty directory to hold your working files:
$ mkdir mydroid
$ cd mydroid
Run repo init to bring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest:
$ repo init -u git://android.git.kernel.org/platform/manifest.git
When prompted, configure Repo with your real name and email address. If you plan to submit code, use an email address that is associated with a Google account.
A successful initialization will end with a message such as
   repo initialized in /mydroid

To pull down files to your working directory from the repositories as specified in the default manifest, run
   $ repo sync  


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8059/showart_1360298.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP