基础环境搭建
参考Android源码下载的环境搭建
源码下载
在Android releases | CodeLinaro Wiki上找到需要下载的芯片分支代码。

// 命令模板
repo init --depth=1 -u https://git.codelinaro.org/clo/la/platform/manifest.git -b release -m [manifest] --repo-url=https://git.codelinaro.org/clo/tools/repo.git --repo-branch=qc-stable
比如下载 LA.UM.10.3.r1-01700-sdm845.0 845 android12 分支的开源代码
repo init --depth=1 -u https://git.codelinaro.org/clo/la/platform/manifest.git -b release -m LA.UM.10.3.r1-01700-sdm845.0.xml --repo-url=https://git.codelinaro.org/clo/tools/repo.git --repo-branch=qc-stable
// 执行同步
repo

文章讲述了如何在Ubuntu20系统中搭建下载Android源码的基础环境,特别是针对python3.10版本中缺少formatter模块的问题,提出了解决方案,即把formatter.py文件放入python3.10的lib目录或下载Python3.8.0a4以获取formatter.py。
最低0.47元/天 解锁文章
511

被折叠的 条评论
为什么被折叠?



