01_Android源码下载方法

来源:互联网 发布:mac os.ios镜像文件 编辑:程序博客网 时间:2024/06/03 17:44

Android源码下载
一、下载环境
1. Linux系统
VMware+Utuntu
Utuntu下载地址:https://www.ubuntu.com/download/desktop
2. repo工具
安装repo
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
3. Android代码源
清华大学开源软件镜像站:https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/

二、下载过程
1. 创建源码存放目录
~/source_code/android/tsinghua
2. 修改~/bin/repo中的REPO_URL
REPO_URL = ‘https://mirrors.tuna.tsinghua.edu.cn/git/git-repo’
3. 初始化仓库
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest
4. 同步代码
repo sync
repo sync会经常中断,到99%就不动了,前前后后一个星期,还是没有全部sync成功。先执行repo sync -l,checkout完了已经sync完的仓库,代码不全,只能先看着了。
这里写图片描述

0 0
原创粉丝点击