wget https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
aosp
-
monthly
/
aosp
-
latest.tar
tar xf aosp
-
latest.tar
cd
/
home
/
yourname
/
.
bin
curl https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
git
/
git
-
repo
-
o repo
chmod
+
x repo
export REPO_URL
=
'https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'
export PATH
=
/
home
/
yourname
/
.
bin
:$PATH
source .bashrc
repo init
-
u https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
git
/
AOSP
/
platform
/
manifest
-
b android
-
11.0
.
0_r46
repo sync
1.
修改.repo
/
manifests.git
/
config
2.
修改 url 为 (中科大镜像) git:
/
/
mirrors.ustc.edu.cn
/
aosp
/
platform
/
manifest
git branch
-
a
git checkout <分支>
repo init
-
u https:
/
/
mirrors.tuna.tsinghua.edu.cn
/
git
/
AOSP
/
platform
/
manifest
-
b android
-
4.0
.
1_r1
-
-
mirror
mkdir
-
p
/
usr
/
local
/
aosp
/
mirror
cd
/
usr
/
local
/
aosp
/
mirror
repo init
-
u https:
/
/
android.googlesource.com
/
mirror
/
manifest
-
-
mirror
repo sync
mkdir
-
p
/
usr
/
local
/
aosp
/
master
cd
/
usr
/
local
/
aosp
/
master
repo init
-
u
/
usr
/
local
/
aosp
/
mirror
/
platform
/
manifest.git
repo sync