【问题标题】:How to build AOSP for Android Automotive OS?如何为 Android Automotive OS 构建 AOSP?
【发布时间】:2020-03-08 09:18:47
【问题描述】:

我已经从https://www.android-x86.org/ 下载了 x86 的 AOSP 代码库。它构建良好。我想知道如何设置config.mk,以便我可以编译或构建具有Android Automotive OS 风格的Android。

任何指针?

【问题讨论】:

    标签: android-x86 android-automotive


    【解决方案1】:

    请参阅/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。您可以选择汽车模拟器作为构建目标。

    简而言之:

    1. 下载一些 Android 存储库。对于 Android 10,这可能是例如使用repo:

      $ repo init -u https://android.googlesource.com/platform/manifest -b android-10.0.0_r14
      $ repo sync
      
    2. 设置环境并选择与您的 CPU 架构相匹配的汽车模拟器目标变体,例如

      $ . build/envsetup.sh
      $ lunch aosp_car_x86-userdebug
      
    3. 构建目标:

      $ make
      
    4. 构建成功后,从命令行运行模拟器:

      $ emulator
      

      注意:通常,出于开发目的,您希望使用一些附加选项来运行模拟器,例如-selinux permissive(SELinux 未强制执行)或-writable-system(可写系统映像)。有关详细信息,请参阅Start the emulator from the command line 文档。

    【讨论】:

    • 如果我想在物理机上部署 Android Automotive,但不只是在模拟器中使用,这个构建选项会给我 ISO、system.sfs 和其他文件吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-22
    • 2013-06-26
    相关资源
    最近更新 更多