android-x86 - 如何为 Android Automotive OS 构建 AOSP?

标签 android-x86 android-automotive

我已经从 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 .您可以选择汽车模拟器作为构建目标。
简而言之:
  • 下载一些 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 (可写的系统镜像)。引用 Start the emulator from the command line文档了解更多详情。
  • 关于android-x86 - 如何为 Android Automotive OS 构建 AOSP?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58822494/

    相关文章:

    ARM、MIPS、x86 的 Android os.arch 输出?

    android - 如何在自定义 Android x86 平台上安装 libhoudini

    android - Android 模拟器 x86 上的 Chrome

    android - 未找到汽车 Intel x86 Atom 系统镜像 SDK 管理器

    java - 适用于 SRS 传感器的 Android 汽车 CarSensorManager

    android - 运行后一个应用程序有两个相同的图标

    android - APV PDF 查看器 : How to build for Android NDK x86 Platform?

    android - dalvik.system.PathClassLoader 在 Intel 设备上找不到 jni

    android - 我对 Android Auto 媒体持续时间功能有疑问

    Android Studio 汽车 API