1.下载 步骤
-
wget -c -t 0 https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar
-
tar -xvf aosp-latest.tar
-
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-9.0.0_r40
-
repo sync
对于第三步 对于想下载的源码可以访问这个网址:
2. 代码编译
运行:
- source build/envsetup.sh
- lunch 15 (我选的是模拟器 x86de 一个 分支)
- make -j8
- 编译完成
3) 模拟运行
-
直接运行 命令
emulator -
使用别的 模拟器运行
待续````
参考文件:
清华大学开源软件镜像站
https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/
来源:https://blog.csdn.net/qq_27061049/article/details/99684182