0
点赞
收藏
分享

微信扫一扫

清华镜像 Android各个版本下载


 一、

 

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

 

二、

 vim ~/bin/repo

修改点:

REPO_URL = 'https://aosp.tuna.tsinghua.edu.cn/git-repo' #REPO_URL = 'https://gerrit.googlesource.com/git-repo'

#!/usr/bin/env python

# repo default configuration
#
import os
REPO_URL = os.environ.get('REPO_URL', None)
if not REPO_URL:
REPO_URL = 'https://aosp.tuna.tsinghua.edu.cn/git-repo' #REPO_URL = 'https://gerrit.googlesource.com/git-repo'
REPO_REV = 'stable'

# Copyright (C) 2008 Google Inc.

 

三、

如果需要某个特定的 Android 版本(列表):

​​https://source.android.com/source/build-numbers.html#source-code-tags-and-builds​​

#~/bin/repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-5.0.2_r1

#~/bin/repo sync

 

 

举报

相关推荐

0 条评论