1# 2# Copyright (C) 2017 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17PRODUCT_MANIFEST_FILES += device/google/cuttlefish/shared/config/product_manifest.xml 18SYSTEM_EXT_MANIFEST_FILES += device/google/cuttlefish/shared/config/system_ext_manifest.xml 19 20$(call inherit-product, packages/services/Car/car_product/build/car_vendor.mk) 21 22$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) 23$(call inherit-product, device/google/cuttlefish/shared/bluetooth/device_vendor.mk) 24$(call inherit-product, device/google/cuttlefish/shared/gnss/device_vendor.mk) 25$(call inherit-product, device/google/cuttlefish/shared/graphics/device_vendor.mk) 26$(call inherit-product, device/google/cuttlefish/shared/secure_element/device_vendor.mk) 27$(call inherit-product, device/google/cuttlefish/shared/swiftshader/device_vendor.mk) 28$(call inherit-product, device/google/cuttlefish/shared/telephony/device_vendor.mk) 29$(call inherit-product, device/google/cuttlefish/shared/sensors/device_vendor.mk) 30$(call inherit-product, device/google/cuttlefish/shared/device.mk) 31 32# Extend cuttlefish common sepolicy with auto-specific functionality 33BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/auto/sepolicy \ 34 device/google/cuttlefish/shared/auto/sepolicy/vendor 35 36################################################ 37# Begin general Android Auto Embedded configurations 38 39PRODUCT_COPY_FILES += \ 40 packages/services/Car/car_product/init/init.bootstat.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.bootstat.rc \ 41 packages/services/Car/car_product/init/init.car.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.car.rc 42 43ifneq ($(LOCAL_SENSOR_FILE_OVERRIDES),true) 44 PRODUCT_COPY_FILES += \ 45 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \ 46 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml 47endif 48 49PRODUCT_PRODUCT_PROPERTIES += \ 50 ro.boot.uwbcountrycode=US 51 52PRODUCT_COPY_FILES += \ 53 frameworks/native/data/etc/car_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/car_core_hardware.xml \ 54 frameworks/native/data/etc/android.hardware.broadcastradio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.broadcastradio.xml \ 55 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \ 56 frameworks/native/data/etc/android.hardware.screen.landscape.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.screen.landscape.xml \ 57 frameworks/native/data/etc/android.software.activities_on_secondary_displays.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.activities_on_secondary_displays.xml \ 58 59# Preinstalled packages per user type 60PRODUCT_COPY_FILES += \ 61 device/google/cuttlefish/shared/auto/preinstalled-packages-product-car-cuttlefish.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/preinstalled-packages-product-car-cuttlefish.xml 62 63ifndef LOCAL_AUDIO_PRODUCT_COPY_FILES 64LOCAL_AUDIO_PRODUCT_COPY_FILES := \ 65 device/google/cuttlefish/shared/auto/car_audio_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/car_audio_configuration.xml \ 66 device/google/cuttlefish/shared/auto/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ 67 frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \ 68 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml 69LOCAL_AUDIO_PRODUCT_COPY_FILES += \ 70 device/google/cuttlefish/shared/auto/audio_effects_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects_config.xml 71endif 72 73# Install automotive specific battery health HAL 74PRODUCT_PACKAGES += \ 75 android.hardware.health-service.automotive \ 76 android.hardware.health-service.automotive_recovery \ 77 78# Include display settings for an auto device. 79PRODUCT_COPY_FILES += \ 80 device/google/cuttlefish/shared/auto/display_settings.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings.xml 81 82# vehicle HAL 83ifeq ($(LOCAL_VHAL_PRODUCT_PACKAGE),) 84 LOCAL_VHAL_PRODUCT_PACKAGE := android.hardware.automotive.vehicle@V3-emulator-service 85 BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/auto/sepolicy/vhal 86endif 87PRODUCT_PACKAGES += $(LOCAL_VHAL_PRODUCT_PACKAGE) 88 89# Remote access HAL 90PRODUCT_PACKAGES += android.hardware.automotive.remoteaccess@V2-default-service 91 92# Broadcast Radio 93PRODUCT_PACKAGES += android.hardware.broadcastradio-service.default 94 95# IVN HAL 96PRODUCT_PACKAGES += android.hardware.automotive.ivn@V1-default-service 97 98# AudioControl HAL 99ifeq ($(LOCAL_AUDIOCONTROL_HAL_PRODUCT_PACKAGE),) 100 LOCAL_AUDIOCONTROL_HAL_PRODUCT_PACKAGE := android.hardware.automotive.audiocontrol-service.example 101 BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/auto/sepolicy/audio 102endif 103PRODUCT_PACKAGES += $(LOCAL_AUDIOCONTROL_HAL_PRODUCT_PACKAGE) 104 105# CAN bus HAL 106PRODUCT_PACKAGES += android.hardware.automotive.can-service 107 108# MACSEC HAL 109PRODUCT_PACKAGES += android.hardware.macsec-service 110PRODUCT_PACKAGES += wpa_supplicant_macsec 111PRODUCT_COPY_FILES += \ 112 $(LOCAL_PATH)/macsec/wpa_supplicant_macsec.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wpa_supplicant_macsec.conf \ 113 $(LOCAL_PATH)/macsec/init.wpa_supplicant_macsec.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wpa_supplicant_macsec.rc 114 115# Occupant Awareness HAL 116PRODUCT_PACKAGES += android.hardware.automotive.occupant_awareness@1.0-service 117include packages/services/Car/car_product/occupant_awareness/OccupantAwareness.mk 118BOARD_SEPOLICY_DIRS += packages/services/Car/car_product/occupant_awareness/sepolicy 119 120# EVS 121# By default, we enable EvsManager, a sample EVS app, and a mock EVS HAL implementation. 122# If you want to use your own EVS HAL implementation, please set ENABLE_MOCK_EVSHAL as false 123# and add your HAL implementation to the product. Please also check init.evs.rc and see how 124# you can configure EvsManager to use your EVS HAL implementation. Similarly, please set 125# ENABLE_SAMPLE_EVS_APP as false if you want to use your own EVS app configuration or own EVS 126# app implementation. 127ENABLE_EVS_SERVICE ?= true 128ENABLE_MOCK_EVSHAL ?= true 129ENABLE_CAREVSSERVICE_SAMPLE ?= true 130ENABLE_SAMPLE_EVS_APP ?= true 131ENABLE_CARTELEMETRY_SERVICE ?= true 132 133ifeq ($(ENABLE_MOCK_EVSHAL), true) 134CUSTOMIZE_EVS_SERVICE_PARAMETER := true 135USE_AIDL_DISPLAY_SERVICE := true 136PRODUCT_PACKAGES += android.hardware.automotive.evs-aidl-default-service 137PRODUCT_COPY_FILES += \ 138 device/google/cuttlefish/shared/auto/evs/init.evs.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.evs.rc 139BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/auto/sepolicy/evs 140endif 141 142ifeq ($(ENABLE_SAMPLE_EVS_APP), true) 143PRODUCT_COPY_FILES += \ 144 device/google/cuttlefish/shared/auto/evs/evs_app_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/automotive/evs/config_override.json 145endif 146 147BOARD_IS_AUTOMOTIVE := true 148 149DEVICE_PACKAGE_OVERLAYS += device/google/cuttlefish/shared/auto/overlay 150 151PRODUCT_PACKAGES += CarServiceOverlayCuttleFish 152GOOGLE_CAR_SERVICE_OVERLAY += CarServiceOverlayCuttleFishGoogle 153 154PRODUCT_PACKAGES += ConnectivityOverlayCuttleFish 155GOOGLE_CAR_SERVICE_OVERLAY += ConnectivityOverlayCuttleFishGoogle 156 157TARGET_BOARD_INFO_FILE ?= device/google/cuttlefish/shared/auto/android-info.txt 158