Android 源码下载

  1. Android JDK安装;

  2. 命令行运行下面命令:

     mkdir ~/bin PATH=~bin:$PATH curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo chmod a+x ~bin/repo
  3. 修改REPO_URL为清华大学镜像:

     将~/bin/repo文件中 REPO_URL = 'https://gerrit.googlesource.com/git-repo' 替换为 REPO_URL = 'https://gerrit-googlesource.lug.ustc.edu.cn/git-repo'

    Android版本列表

  4. 初始化Repo Client:

     mkdir WORK_DIR cd WORK_DIR repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-6.0.1_r17
  5. 下载代码:

     repo sync

    由于下载过程时间较长且经常中断,建议使用下面repo_sync.sh脚本:

     repo sync while [ $? -ne 0 ]  do     repo sync done
  6. 漫长等待.....直到全部下载完成。

更多相关文章

  1. Android(安卓)app内部下载安装
  2. 在Android(安卓)Studio 中导入opencv2.4.9
  3. android资料下载地址汇总
  4. Android——Android(安卓)Studio开发环境搭建及设置本地Gradle方
  5. Android(安卓)下载文件及写入SD卡
  6. Google提供Fastboot和ADB单独下载服务
  7. Android搜索框之PopupWindow+ListView实现
  8. Android(安卓)SDK Manager 下载问题
  9. Cordova更改Gradle版本

随机推荐

  1. Android(安卓)Studio 一些使用经验 - 传
  2. android 常用控件
  3. Android多线程断点续传详解与案例
  4. android window 属性
  5. Android里监视数据库的变化[转]
  6. android 状态栏一体化实现
  7. EventBus 3.0 简单使用
  8. 【Android】关于FLAG_ACTIVITY_NEW_TASK
  9. 3天打造一个 android 小游戏
  10. Android(安卓)studio怎么使用eclipse的快