1# 2# Copyright (C) 2016 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# Base platform for car builds 18# car packages should be added to car.mk instead of here 19 20ifeq ($(DISABLE_CAR_PRODUCT_CONFIG_OVERLAY),) 21PRODUCT_PACKAGE_OVERLAYS += packages/services/Car/car_product/overlay 22endif 23 24ifeq ($(DISABLE_CAR_PRODUCT_VISUAL_OVERLAY),) 25PRODUCT_PACKAGE_OVERLAYS += packages/services/Car/car_product/overlay-visual 26endif 27 28PRODUCT_PACKAGES += \ 29 com.android.wifi \ 30 Home \ 31 BasicDreams \ 32 CaptivePortalLogin \ 33 CertInstaller \ 34 DocumentsUI \ 35 DownloadProviderUi \ 36 FusedLocation \ 37 InputDevices \ 38 KeyChain \ 39 Keyguard \ 40 LatinIME \ 41 Launcher2 \ 42 PacProcessor \ 43 PrintSpooler \ 44 ProxyHandler \ 45 Settings \ 46 SharedStorageBackup \ 47 VpnDialogs \ 48 MmsService \ 49 ExternalStorageProvider \ 50 atrace \ 51 libandroidfw \ 52 libaudioutils \ 53 libmdnssd \ 54 libnfc_ndef \ 55 libpowermanager \ 56 libvariablespeed \ 57 PackageInstaller \ 58 carbugreportd \ 59 vehicle_binding_util \ 60 61# ENABLE_CAMERA_SERVICE must be set as true from the product's makefile if it wants to support 62# Android Camera service. 63ifneq ($(ENABLE_CAMERA_SERVICE), true) 64PRODUCT_PROPERTY_OVERRIDES += config.disable_cameraservice=true 65PRODUCT_PACKAGES += HideCameraApps 66endif 67 68# ENABLE_EVS_SERVICE must be set as true from the product's makefile if it wants to support 69# the Extended View System service. 70ifeq ($(ENABLE_EVS_SERVICE), true) 71PRODUCT_PACKAGES += evsmanagerd 72 73# CUSTOMIZE_EVS_SERVICE_PARAMETER must be set as true from the product's makefile if it wants 74# to use IEvsEnumearor instances other than hw/1. 75ifneq ($(CUSTOMIZE_EVS_SERVICE_PARAMETER), true) 76PRODUCT_COPY_FILES += \ 77 packages/services/Car/cpp/evs/manager/aidl/init.evs.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/init.evs.rc 78endif 79 80ifeq ($(ENABLE_EVS_SAMPLE), true) 81# ENABLE_EVS_SAMPLE should set be true or their vendor specific equivalents should be included in 82# the device.mk with the corresponding selinux policies 83PRODUCT_PACKAGES += evs_app \ 84 android.hardware.automotive.evs-default \ 85 cardisplayproxyd 86include packages/services/Car/cpp/evs/apps/sepolicy/evsapp.mk 87endif # ENABLE_EVS_SAMPLE 88 89ifeq ($(ENABLE_CAREVSSERVICE_SAMPLE), true) 90PRODUCT_PACKAGES += CarEvsCameraPreviewApp 91endif 92ifeq ($(ENABLE_REAR_VIEW_CAMERA_SAMPLE), true) 93PRODUCT_PACKAGES += SampleRearViewCamera 94PRODUCT_PACKAGE_OVERLAYS += packages/services/Car/tests/SampleRearViewCamera/overlay 95endif 96 97endif # ENABLE_EVS_SERVICE 98 99# Device running Android is a car 100PRODUCT_COPY_FILES += \ 101 frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.hardware.type.automotive.xml 102 103# Default permission grant exceptions 104PRODUCT_COPY_FILES += \ 105 packages/services/Car/car_product/build/preinstalled-packages-product-car-base.xml:system/etc/sysconfig/preinstalled-packages-product-car-base.xml 106 107$(call inherit-product, $(SRC_TARGET_DIR)/product/core_minimal.mk) 108 109# Default dex optimization configurations 110PRODUCT_PROPERTY_OVERRIDES += \ 111 pm.dexopt.disable_bg_dexopt=false \ 112 pm.dexopt.downgrade_after_inactive_days=10 \ 113 dalvik.vm.dex2oat-cpu-set=0,1 \ 114 dalvik.vm.dex2oat-threads=2 115 116# Required init rc files for car 117PRODUCT_COPY_FILES += \ 118 packages/services/Car/car_product/init/init.bootstat.rc:system/etc/init/init.bootstat.car.rc \ 119 packages/services/Car/car_product/init/init.car.rc:system/etc/init/init.car.rc 120 121# Device policy management support 122PRODUCT_COPY_FILES += \ 123 frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml 124 125# Enable car watchdog 126include packages/services/Car/cpp/watchdog/product/carwatchdog.mk 127 128# Enable car power policy 129include packages/services/Car/cpp/powerpolicy/product/carpowerpolicy.mk 130 131# Conditionally enable the telemetry service 132ifeq ($(ENABLE_CARTELEMETRY_SERVICE), true) 133include packages/services/Car/cpp/telemetry/cartelemetryd/products/telemetry.mk 134endif 135