Android源码下载 清华AOSP镜像源
2016-06-14 22:11
513 查看
这个是Android源码镜像源 https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/
把https://android.googlesource.com/
全部使用 https://aosp.tuna.tsinghua.edu.cn/
或git://aosp.tuna.tsinghua.edu.cn/aosp/ 代替即可
1下载repo源码管理脚本
sudo apt-get install git curl
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
下面这个在repo中更改下
编辑 ~/bin/repo,把 REPO_URL 一行替换成下面的:REPO_URL = 'https://gerrit-google.tuna.tsinghua.edu.cn/git-repo'
下载git仓库Android清单
git clone https://android.googlesource.com/platform/manifest可全部替换为下面的
git clone https://aosp.tuna.tsinghua.edu.cn/platform/manifest
$ cd manifest
$ git branch -a 可以查看当前的分支
![](http://img.blog.csdn.net/20160614221028105?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
下载指定版本源码,参数 -b 后为指定版本号,可根据第5步获得
$ repo init -u https://android.googlesource.com/platform/manifest -b android-2.2.2_r1
替换为下面repo init -u git://aosp.tuna.tsinghua.edu.cn/aosp//platform/manifest -b android-2.2.2_r1
$ repo sync
下载内核goldfish源码清单
git clone git://aosp.tuna.tsinghua.edu.cn/aosp/kernel/goldfish.git
cd goldfish查看分支
git branch -a
![](http://img.blog.csdn.net/20160614232937123?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
git checkout -b remotes/origin/android-goldfish-2.6.29
把https://android.googlesource.com/
全部使用 https://aosp.tuna.tsinghua.edu.cn/
或git://aosp.tuna.tsinghua.edu.cn/aosp/ 代替即可
1下载repo源码管理脚本
sudo apt-get install git curl
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
下面这个在repo中更改下
编辑 ~/bin/repo,把 REPO_URL 一行替换成下面的:REPO_URL = 'https://gerrit-google.tuna.tsinghua.edu.cn/git-repo'
下载git仓库Android清单
git clone https://android.googlesource.com/platform/manifest可全部替换为下面的
git clone https://aosp.tuna.tsinghua.edu.cn/platform/manifest
$ cd manifest
$ git branch -a 可以查看当前的分支
下载指定版本源码,参数 -b 后为指定版本号,可根据第5步获得
$ repo init -u https://android.googlesource.com/platform/manifest -b android-2.2.2_r1
替换为下面repo init -u git://aosp.tuna.tsinghua.edu.cn/aosp//platform/manifest -b android-2.2.2_r1
$ repo sync
下载内核goldfish源码清单
git clone git://aosp.tuna.tsinghua.edu.cn/aosp/kernel/goldfish.git
cd goldfish查看分支
git branch -a
git checkout -b remotes/origin/android-goldfish-2.6.29
相关文章推荐
- Android入门-网页展示
- Android ROM包文件系统根结构分析
- Android_TakePhoto
- Android逆向工程(一)-Apktool使用
- 深入理解Android内核——Android启动分析
- android中的动画完全总结
- Android ListView分组
- 登陆Android中的搜索框(SearchView)的功能和用法
- 浮动框停留在底部
- android渐变色,边角,边框,
- android拍照与相册选择照片并保存本地
- android studio导入第三方工具
- android 2.x开发中actionbar的使用
- (OK) running two Android-x86 in VirtualBox, they connect to "ethernet bridge"
- Android 中LayoutInflater的使用(转)
- Android的setTag
- Android.mk的用法和基础
- Android之MVP模式
- android中高效显示图片
- [Bug] 解决透明 Activity 在 Android 6.0 背景不透明