android 源码下载

//下载repo
cyl@cyl-PC:/home2/android$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
//给权限
cyl@cyl-PC:/home2/android$ chmod a+x ~/bin/repo
//给到path路径
cyl@cyl-PC:/home2/android$ PATH=~/bin/:$PATH
//修改~/bin/repo 文件中的REPO_URL为清华
REPO_URL = 'https://aosp.tuna.tsinghua.edu.cn/git-repo'
//初始化repo
cyl@cyl-PC:/home2/android$ repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-10.0.0_r1
//可能会提示配置git
cyl@cyl-PC:/home2/android$ git config --global user.name "your name"
cyl@cyl-PC:/home2/android$ git config --global user.email "your email"
//同步代码
cyl@cyl-PC:/home2/android$ repo sync -j8

你可能感兴趣的:(android 源码下载)