我已经从 https://www.android-x86.org/ 下载了 x86 的 AOSP 代码库.它构建得很好。我想知道如何设置 config
或 .mk
,以便我可以编译或构建具有 Android Automotive OS 风格的 Android。
任何指针?
最佳答案
引用 /device/generic/car/ AOSP 汽车模拟器配置可用的存储库。
以下目标变体可用:
aosp_car_arm-userdebug
aosp_car_arm64-userdebug
aosp_car_x86-userdebug
aosp_car_x86_64-userdebug
我建议按照官方文档下载和构建 AOSP:Set up for Android Development .您可以选择汽车模拟器作为构建目标。简而言之:
$ repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r14
$ repo sync
$ . build/envsetup.sh
$ lunch aosp_car_x86-userdebug
$ make
$ emulator
注意:通常,出于开发目的,您希望运行带有一些附加选项的模拟器,例如-selinux permissive
(不强制执行 SELinux)或 -writable-system
(可写的系统镜像)。引用 Start the emulator from the command line文档了解更多详情。关于android-x86 - 如何为 Android Automotive OS 构建 AOSP?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58822494/