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.csdn.net/liangxiaozhang/article/details/19543261

猜你喜欢

转载自gdfdfg-tech.iteye.com/blog/2101144