(1) Download Repo tool
mkdir ~/binpath=~/bin: $PATHcurl https://storage.googleapis.com/git-repo-downloads /repo > ~/bin/repo-ssl 'Https://gerrit-googlesource.proxy.ustclug.org/git-repo /+/master/repo?format=text' |base64-d > ~/bin/repochmod a+x ~/bin/repo
(2) Set up working directory
mkdir WORKING_DIRECTORYCD working_directory
(3) Add git user name
git config--global"[email protected]"--global" Your Name "
(4) Initializing the warehouse
1 repo init-u git://mirrors.ustc.edu.cn/aosp/platform/manifest2 # # If the hint can't connect to Gerrit.googlesource.com, you can edit the ~/bin/repo, replace the Repo_url line with the following:3'https:// Gerrit-googlesource.proxy.ustclug.org/git-repo'
(5) View the branch on the library
1 git--git-dir=.repo/manifests/.git/branch-a
(6) Initializing a specific branch
Repo init-u git://mirrors.ustc.edu.cn/aosp/platform/manifest-b android-8.1.0_r9
(7) Download
Repo Sync
AOSP Android Source Download