android framework-下载Android系统源代码

□ apt-get install git-core curl    #先下载这两个工具mkdir android-froyo             #建立下载目录
□ cd android-froyo                 #进入下载目录
□ curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo    #下载repo脚本,通过该脚本可下载整套源码chmod a+x repo                   #设置该脚本为可执行vi repo                          #编辑repo文件,修改REPO_UR为:REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
□ ./repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b froyo    #初始化git库
□ ./repo sync                      #同步源码树,下载源码,大小约为2GB,如果网速快,估计需要2个小时

 

参考链接:清华大学开源软件镜像站

【最新】Android 源代码下载方法

如何不FQ下载Android代码

 

posted @ 2018-07-06 14:25  夜行过客  阅读(1436)  评论(0编辑  收藏  举报