先下载.tar包,78G左右。解压缩。 curl -OC - https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar # 下载初始化包 tar xf aosp-latest.tar cdAOSP# 解压得到的 AOSP 工程目录 # 这时 ls 的话什么也看不到,因为只有一个隐藏的 .repo 目录 repo
更详细内容可参见:《下载源代码》(https://source.android.com/setup/build/downloading) 另外,国外镜像难免不稳定,也可以直接用清华镜像(https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/),首次同步容易失败,建议先用迅雷等软件直接下载初始化包aosp-latest.tar(https:...
# 1.解压tar包 tar –xvf aosp-latest.tar # 进入解压出来的根目录,看不到任何文件,因为此时还没有执行sync操作,根目录中只有一个隐藏目录.repo # 它包含了AOSP仓库的Git信息 # 2.进入aosp/.repo/manifests.git目录,修改config文件中的url地址 root@vincent-win11:~/aosp/.repo/manifests.git# vi config ...
$reposync 如果硬盘空间够大,下载最新的版本。 由于所有代码都是从隐藏的.repo目录中 checkout 出来的,下载后解压 再repo sync一遍即可得到完整的目录。 使用方法如下: wget -c https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar # 下载初始化包 tar xf aosp-latest.tar cd AOSP # 解压得...
1. 下载初始化包,约60G:https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar 2. 解压预下载包,解压出aosp目录,只有隐藏文件夹.repo tar xf aosp-latest.tar 创建目录,初始化仓库 查看android版本号 mkdir aosp cd aosp repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest ...
包含aosp-latest.tar 和 repo程序 下载TAG包,可以节约很多时间 (1)下载初始化包,约 60GB 数据,建议复制地址,直接使用迅雷下载 szhou@bc-R01:~/works$curl-OC - https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar (2)解压 szhou@bc-R01:~/works$mkdiraosp ...
在windows或者Linux上面通过迅雷下载https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tarwget-c https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar#下载初始化包 1. 2. 2. 解压预下载包 复制 tar xf aosp-latest.tarcd AOSP->解压得到的 AOSP 工程目录,这时 ls 的话什么...
2. 下载代码,最方便的当然是下载清华镜像中的aosp-latest.tar,然后执行以下命令: tar -xvf aosp-latest.tar cd aosp repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-11.0.0_rxxxx repo sync -c -j8 ...
wget -c https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar # 下载初始化包 tar xf aosp-latest.tar cd AOSP # 解压得到的 AOSP 工程目录# 这时 ls 的话什么也看不到,因为只有一个隐藏的 .repo 目录 repo sync # 正常同步一遍即可得到完整目录# 或 repo sync -l 仅checkout代码代码...
首先下载aosp-latest.tar包,清华镜像下载地址为:https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar 下载完毕后可以使用tar -zxvf aosp-latest.jar指令解压该文件,解压出来文件夹名称为aosp,里面只有一个叫.repo的隐藏文件夹,该文件夹就是仓库,安卓源代码都在里面,可以使用CTRL+H来查看该隐藏文件...