android源代码下载

   由于国外的网站被墙,这里所有提供的只是国内的下载方式

   1、apt-get install git-core curl #下载工具

    2、 国内的repo

    curl http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo >./repo

     3、chmod a+x repo #设置该脚本为可以执行

  4、国内的源代码下载地址
  $ repo init -u git:// git.omapzoom.org /platform/manifest.git
    如果要获取每个tag,譬如2.3.5,则可以执行:
     $ repo init -u git:// git.omapzoom.org /platform/manifest.git -b android-4.4.4_r1
   如果你不知道具体的tag叫什么名字,那么可以在浏览器访问http://git.omapzoom.org,并点击上面的 /platform/manifest.git 链接,那么可以看到所有的tag名称.
    执行repo init过程中,可能需要填写一些个人信息,直接填写即可。
    配置好repo后,执行./repo sync即可下载你所需要的源代码了。
      打开.repo目录下的manifest.xml文件(命令vim manifest.xml)并找到fetch属性,在我的文件中显示fetch="..",将fetch修改为fetch=" git:// git.omapzoom.org/",保存并退出;
    6、继续./repo sync就可以下载了。
     参考地址:http://blog.sina.com.cn/s/blog_70b9730f01016peg.html
                       http://blog.chinaunix.net/uid-21843387-id-2943616.html
                       http://blog.youkuaiyun.com/liangxiaozhang/article/details/19543261
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值