Android源码下载

a 夏天 提交于 2019-11-27 13:41:19

1.下载 步骤

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

  2. tar -xvf aosp-latest.tar

  3. repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-9.0.0_r40

  4. repo sync

在这里插入图片描述
对于第三步 对于想下载的源码可以访问这个网址:

代号、标记和细分版本号

2. 代码编译

运行:

  1. source build/envsetup.sh
  2. lunch 15 (我选的是模拟器 x86de 一个 分支)
    在这里插入图片描述
  3. make -j8

在这里插入图片描述

  1. 编译完成

3) 模拟运行

  1. 直接运行 命令
    emulator

  2. 使用别的 模拟器运行
    待续````

参考文件:
清华大学开源软件镜像站
https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!