把用户home目录下害怕的可乐目录添加到环境目录中
mkdir ~/害怕的可乐echo "PATH=~/害怕的可乐:$PATH" >> ~/.bashrcsource ~/.bashrc 安装curl sudo apt-get install curl 安装repo使用清华的repo
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repochmod +x repo 设置repo 更新源 export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo' 初始化某android版本git仓库 mkdir ~/android/android6.0cd ~/android/android6.0 repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-6.0.1_r16 下载源码 repo sync 只下载部分源码repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-6.0.1_r16完成后
可以先修改工程目录下 .repo/manifests/default.xml
只保留需要想要的的path,删除不需要的
然后在repo sync
下载kerenl源 git clone https://aosp.tuna.tsinghua.edu.cn/kernel/common.gitgit branch -agit checkout 版本