一、配置android的源代码下载环境:
1.创建存放脚本的文件(repo):
mkdir ~/bin
PATH=~/bin:$PATH
2.下载repo脚本文件(下载android源代码):
curl https://dl-ssl-google.com/googlesource/git-repo/repo > -/bin/repo
chmod a+x ~/bin/repo
3.创建用于存放android源代码目录:
mkdir android_source
cd android_source
4.初始化:
repo init -u https://android.googlesource.com/platform/mainfest
5.下载源码:
repo sync