首页 > 编程知识 正文

android源码网站,android 源代码

时间:2023-05-03 22:45:46 阅读:216006 作者:2652

安装配置Git sudo apt-get install gitgit config --global user.email "xxxxxxx@gmail.com"git config --global user.name "xxxxx" 安装python sudo apt-get install python 配置环境变量PATH

把用户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 版本

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。