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 17# Auto modules 18PRODUCT_PACKAGES += \ 19 android.hardware.automotive.vehicle@V1-emulator-service \ 20 android.hardware.broadcastradio@2.0-service \ 21 android.hardware.audio.service-caremu 22 23# Runtime Resource Overlay for Connectivity 24PRODUCT_PACKAGES += \ 25 CarConnectivityOverlay 26 27# Emulator configuration 28PRODUCT_COPY_FILES += \ 29 device/generic/car/common/config.ini:config.ini 30 31# Car init.rc 32PRODUCT_COPY_FILES += \ 33 packages/services/Car/car_product/init/init.bootstat.rc:root/init.bootstat.rc \ 34 packages/services/Car/car_product/init/init.car.rc:root/init.car.rc 35 36# Copy car_core_hardware and overwrite handheld_core_hardware.xml with a disable config. 37# Overwrite goldfish related xml with a disable config. 38PRODUCT_COPY_FILES += \ 39 device/generic/car/common/android.hardware.disable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \ 40 device/generic/car/common/car_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/car_core_hardware.xml \ 41 device/generic/car/common/android.hardware.disable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml \ 42 device/generic/car/common/android.hardware.disable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \ 43 device/generic/car/common/android.hardware.disable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.concurrent.xml \ 44 device/generic/car/common/android.hardware.disable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \ 45 device/generic/car/common/android.hardware.disable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \ 46 device/generic/car/common/android.hardware.disable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.any.xml \ 47 device/generic/car/common/android.hardware.disable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ 48 device/generic/car/common/android.hardware.disable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \ 49 device/generic/car/common/android.hardware.disable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \ 50 device/generic/car/common/android.hardware.disable.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \ 51 52# Overwrite goldfish fstab.ranchu to turn off adoptable_storage 53PRODUCT_COPY_FILES += \ 54 device/generic/car/common/fstab.ranchu.car:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.ranchu 55 56# Enable landscape 57PRODUCT_COPY_FILES += \ 58 frameworks/native/data/etc/android.hardware.screen.landscape.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.screen.landscape.xml 59 60# Used to embed a map in an activity view 61PRODUCT_COPY_FILES += \ 62 frameworks/native/data/etc/android.software.activities_on_secondary_displays.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.activities_on_secondary_displays.xml 63 64# Permission for Wi-Fi passpoint support 65PRODUCT_COPY_FILES += \ 66 frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml 67 68# Additional permissions 69PRODUCT_COPY_FILES += \ 70 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \ 71 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ 72 frameworks/native/data/etc/android.hardware.broadcastradio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.broadcastradio.xml \ 73 frameworks/native/data/etc/android.hardware.type.automotive.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.type.automotive.xml \ 74 75# Sensor features 76PRODUCT_COPY_FILES += \ 77 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \ 78 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \ 79 frameworks/native/data/etc/android.hardware.sensor.accelerometer_limited_axes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer_limited_axes.xml \ 80 frameworks/native/data/etc/android.hardware.sensor.gyroscope_limited_axes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope_limited_axes.xml \ 81 frameworks/native/data/etc/android.hardware.sensor.accelerometer_limited_axes_uncalibrated.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer_limited_axes_uncalibrated.xml \ 82 frameworks/native/data/etc/android.hardware.sensor.gyroscope_limited_axes_uncalibrated.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope_limited_axes_uncalibrated.xml \ 83 84# Copy APN configs 85PRODUCT_COPY_FILES += \ 86 device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml \ 87 device/sample/etc/old-apns-conf.xml:system/etc/old-apns-conf.xml 88 89# Whitelisted packages per user type 90PRODUCT_COPY_FILES += \ 91 device/generic/car/common/preinstalled-packages-product-car-emulator.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/preinstalled-packages-product-car-emulator.xml 92 93# Additional selinux policy 94BOARD_SEPOLICY_DIRS += device/generic/car/common/sepolicy 95 96# 97# Special settings for GSI releasing 98# 99ifneq (,$(filter aosp_car_x86_64 aosp_car_arm64,$(TARGET_PRODUCT))) 100$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_release.mk) 101endif 102 103$(call inherit-product, packages/services/Car/car_product/build/car.mk) 104