#1.一键直接安装git, repo 命令sudo apt-get install git git-core phablet-tools
#2.告诉git你是谁
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
#3.下载安卓源码初始化包 wget https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar #4.解压tar文件包 tar xf aosp-latest.tar cd AOSP #5.同步完整源码树 repo sync