1. 程式人生 > >清華映象 Android各個版本下載

清華映象 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