Android源码下载

来源:互联网 发布:网络中介服务提供商 编辑:程序博客网 时间:2024/06/05 19:36

清华镜像地址下载源码

清华镜像的地址

https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/

清华大学android源码版本列表

http://www.cookqq.com/blog/8a10a5f35167c83a01518e96f5450f1c
部分版本如下:
android-2.3_r1 -> origin/android-2.3_r1
android-4.0.1_r1 -> origin/android-4.0.1_r1
android-5.0.0_r1 -> origin/android-5.0.0_r1

下载 repo 工具

mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

传统初始化方法

一、建立工作目录:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
二、修改REPO_URL
vi ~/bin/repo
按 i 进入insert模式
替换REPO_URL = ‘https://mirrors.tuna.tsinghua.edu.cn/git/git-repo’
按esc 键退出编辑,按:wq退出保存
三、下载某个特定的 Android 版本
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-4.0.1_r1
四、同步源码树
repo sync
五、同样方式可以下载其他版本源码

0 0