android源码下载方式
android源碼下載方式:
方式一:
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync
這是官方提供的下載方式,但最近使用這種方式出現網絡連接超時,據說是被hack掉了
同時,注意到kernel源碼網站卻依然能夠訪問:http://android.git.kernel.org/kernel/
于是,使用git方式下載:?git ?clone ?http://android.git.kernel.org/kernel/common.git
最后,成功了
詳見博客:android.git.kernel.org[0:199.6.1.173]: errno=Connection refused
方式二:
把方式一的下載命令中的git修改為http(配置文件需一并修改),則可以順利下載源碼
具體修改步驟如下:
1.?編輯/home/username/bin/repo文件
修改:REPO_URL='git://android.git.kernel.org/tools/repo.git'?
改為:REPO_URL='http://android.git.kernel.org/tools/repo.git'
2.?運行新的命令
repo ?init? -u?http://android.git.kernel.org/platform/manifest.git
3.?修改文件.repo/manifests/default.xml
修改:fetch="git://android.git.kernel.org/"
改為:fetch="http://android.git.kernel.org/"
4.?運行同步命令,下載源碼到本地
repo ?sync
成功!!!
git使用推薦:
linux git命令參數及用法詳解--版本控制工具
VersionControl with Repo and Git
Git?常用命令
轉載于:https://www.cnblogs.com/springmvc-hibernate/archive/2011/09/04/2484090.html
總結
以上是生活随笔為你收集整理的android源码下载方式的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: GridView 控件的执行顺序
- 下一篇: 用extjs4做个登录框