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