获取Android 源码

来源:互联网 发布:网络协议与分析8题 编辑:程序博客网 时间:2024/06/06 00:49

$cd ~

$mkdir myandroid

$cd myandroid

$curl http://android.git.kernel.org/repo > ./repo

$chmod a+x ./repo

$./repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo

###以下是下载需要的源码####

#$cp /opt/imx-android-r9.2/code/r9.2/default.xml  .repo/manifests/default.xml

$./ repo sync

 

 

###现在的时候可能会被封掉,应使用http下载法

###如下:

###修改repo里的git为http

 

原创粉丝点击