源码主页:http://android .git.kernel.org/
正常下载步骤:
$ mkdir mydroid-froyo
$ cd mydroid-froyo
$ repo init -u git://android.git.kernel.org/platform/manifest.git
$ repo sync
尝试了好几次,都没成功下载过…
如果能通过浏览器浏览到android源码的主页,但运行repo init或repo sync的时候,却没法下载源码,形如:
只需要把git开头的地址改为http即可:
[1]
repo init -u http:// android.git.kernel.org/platform/manifest.git -b froyo
[2]修改manifest.git里的地址,也是把git://改为http://
vim .repo/manifest.git
如:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="korg"
fetch="http:// android.git.kernel.org/"
review="review.source.android.com" />
<default revision="froyo"
remote="korg" />
可以直接下载打包好的源码(1.5/16./2.0/2.1/2.2)
地址:http://rgruet.free.fr/public/
android 2.2(froyo)源码下载
最新推荐文章于 2021-05-26 09:08:39 发布