目前还可以使用的android 源码下载
2014-11-20 16:38
295 查看
1. 安装curl
2. git工具的安装
上面两步有各种方式。可能大部分人电脑本身就已经有了
3. repo工具的下载
curl http://git-repo.googlecode.com/files/repo-1.12 > ~/bin/repo chmod a+x ~/bin/repo
在上面中如果不能够curl,在/etc/hosts 中加入下面一句
203.208.46.146 git-repo.googlecode.com
4. repo init创建仓库
$ mkdir work_dirctory $ cd ./work_dirctory $ ~/bin/repo init -u https://android.googlesource.com/platform/manifest
如果要获取每个tag,譬如android-4.4.4_r2.0.1,则可以执行:
$ ~/bin/repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.4_r2.0.1
如果不知道具体tag可以在这个网址上查看 https://android.googlesource.com/platform/manifest/+refs。这个是通过镜像去下载android源码的
5. repo sync 下载
$ ~/bin/repo sync
之后就是等待下载,出现连接中断什么的,重新上面的命令,也可以参考网上有人写过的脚本,连接中断后,自动重新sync
相关文章推荐
- 在windows下使用git下载android源码
- Android 使用git下载源码报错解决方法
- 在windows下使用cygwin 用git下载android最新源码
- mac 系统下android源码下载以及使用(总结)
- 编译Android源码(1) ---- 使用repo下载源代码
- Android源码下载 ---- git 和 repo 使用
- 使用repo和git下载android源码 和 相关解释
- 使用Git工具下载android源码---带步骤
- windows平台使用 git 下载android源码
- 在此分享android源码下载地址 绝对可以下
- 在此分享android源码下载地址 绝对可以下
- windows下使用git下载android源码
- android 4.0 sdk 源码放出 本人亲自打包这里可以下载
- eclipse使用git插件下载android源码
- 在windows下使用git下载android源码
- kernel.org已经恢复正常,可以下载repo和Android源码了。
- 64位ubuntu11.10使用git下载android源码
- 使用git 工具下载android.jar源码
- 使用Git工具下载android源码---带步骤
- 使用git下载android源码 Git和Repo扫盲——如何取得Android源代码