android-x86 - 如何为 Android Automotive OS 构建 AOSP?
问题描述
我已经从https://www.android-x86.org/下载了 x86 的 AOSP 代码库。它构建良好。我想知道如何设置config
or .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:为 Android 开发设置。您可以选择汽车模拟器作为构建目标。
简而言之:
下载一些 Android 存储库。在 Android 10 的情况下,这可能是例如使用repo:
$ repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r14 $ repo sync
设置环境并选择与您的 CPU 架构匹配的汽车模拟器目标变体,例如
$ . build/envsetup.sh $ lunch aosp_car_x86-userdebug
构建目标:
$ make
成功构建后,从命令行运行模拟器:
$ emulator
注意:通常,出于开发目的,您希望使用一些附加选项来运行模拟器,例如
-selinux permissive
(SELinux 未强制执行)或-writable-system
(可写系统映像)。有关详细信息,请参阅从命令行文档启动模拟器。
推荐阅读
- php - 如何创建两个 laravel 项目(在同一台服务器上),共享除资源(视图)文件夹之外的所有文件
- flutter - Flutter - Listview 超出容器边界半径
- python - 如何在有条件的切片中将 Numpy 中的累积和应用于先前的值?
- reactjs - 我该如何解决这个问题 - 我尝试了所有方法但不起作用
- python - Python 3 在函数内部声明实例失败,需要位置参数:'self' 错误
- jmeter - 如何在 Jmeter 控制台中打印取自 csv 的数据
- java - 如果我想重载从超类继承的方法,什么是好的设计实践?
- c - double 变量显示为 double * 和 int 变量显示为 int * - 为什么?
- java - 在 ArrayList 中获取对象哈希码而不是对象值
- python-3.x - Python:使用理解将列表列表转换为字典