mkdir ~/bin PATH=~/bin:$PATH curl https://raw.githubusercontent.com/MoKee/git-repo/stable/repo > ~/bin/repo chmod a+x ~/bin/repo 7.1 init -u https://github.com/MoKee/android -b mkn-mr1 repo sync 8.1 repo init -u https://github.com/MoKee/android -b mko-mr1 9.0 repo init -u https://github.com/MoKee/android -b mkp export MK_AOSP_REMOTE=caf (高通镜像) export MK_AOSP_REMOTE=ustc (中国科学技术大学镜像) export MK_AOSP_REMOTE=tuna (清华大学镜像) export MK_AOSP_REMOTE=aosp (Google镜像) repo selfupdate
source build/envsetup.sh 加载jdk环境 lunch 选择设备型号 mka bacon -j8 开始编译,8个线程) 指令 make clobber 是清除编译缓存,删掉out文件夹下面内容