android 11 源代码下载方法

博客提供了AOSP代码下载的参考链接,详细介绍了下载步骤。首先需下载repo工具,之后有两种下载方式:一是下载月更新包,包括下载、解压更新包并同步代码;二是传统方法,新建目录、初始化仓库,可指定版本,最后同步代码。

 

参考https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/ 和https://lug.ustc.edu.cn/wiki/mirrors/help/aosp/

https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/

一.下载 repo 工具:

mkdir ~/bin

PATH=~/bin:$PATH

curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo

chmod a+x ~/bin/repo

二. 下载

   1.月更新包

  下载更新包

   wget -c https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar

 解压更新包

  tar -xf aosp-latest.tar

  cd aosp-latest

  同步代码

   repo sync

2.传统方法:

新建源代码存放目录

mkdir workdirectory

cd workdirectory

初始化仓库

repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest

 初始化制定版本:

repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest  -b android-11.0.0_r2

同步代码

repo sync 

 

 

 

   

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值