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 DownloadProviderUi \ 35 FusedLocation \ 36 InputDevices \ 37 KeyChain \ 38 Keyguard \ 39 LatinIME \ 40 Launcher2 \ 41 PacProcessor \ 42 PrintSpooler \ 43 ProxyHandler \ 44 Settings \ 45 SharedStorageBackup \ 46 VpnDialogs \ 47 MmsService \ 48 ExternalStorageProvider \ 49 atrace \ 50 libandroidfw \ 51 libaudioutils \ 52 libmdnssd \ 53 libnfc_ndef \ 54 libpowermanager \ 55 libvariablespeed \ 56 PackageInstaller \ 57 carbugreportd \ 58 vehicle_binding_util \ 59 60# ENABLE_CAMERA_SERVICE must be set as true from the product's makefile if it wants to support 61# Android Camera service. 62ifneq ($(ENABLE_CAMERA_SERVICE), true) 63PRODUCT_PROPERTY_OVERRIDES += config.disable_cameraservice=true 64PRODUCT_PACKAGES += HideCameraApps 65endif 66 67# ENABLE_EVS_SERVICE must be set as true from the product's makefile if it wants to support 68# the Extended View System service. 69ifeq ($(ENABLE_EVS_SERVICE), true) 70PRODUCT_PACKAGES += evsmanagerd 71 72# CUSTOMIZE_EVS_SERVICE_PARAMETER must be set as true from the product's makefile if it wants 73# to use IEvsEnumearor instances other than hw/1. 74ifneq ($(CUSTOMIZE_EVS_SERVICE_PARAMETER), true) 75PRODUCT_COPY_FILES += \ 76 packages/services/Car/cpp/evs/manager/aidl/init.evs.rc:$(TARGET_COPY_OUT_SYSTEM)/etc/init/init.evs.rc 77endif 78 79ifeq ($(ENABLE_EVS_SAMPLE), true) 80# ENABLE_EVS_SAMPLE should set be true or their vendor specific equivalents should be included in 81# the device.mk with the corresponding selinux policies 82PRODUCT_PACKAGES += evs_app \ 83 android.hardware.automotive.evs-default \ 84 cardisplayproxyd 85include packages/services/Car/cpp/evs/apps/sepolicy/evsapp.mk 86endif # ENABLE_EVS_SAMPLE 87 88ifeq ($(ENABLE_CAREVSSERVICE_SAMPLE), true) 89PRODUCT_PACKAGES += CarEvsCameraPreviewApp 90endif 91ifeq ($(ENABLE_REAR_VIEW_CAMERA_SAMPLE), true) 92PRODUCT_PACKAGES += SampleRearViewCamera 93endif 94# This is needed to be available to all builds because overlay config doesn't support optional overlays. 95PRODUCT_PACKAGE_OVERLAYS += packages/services/Car/tests/SampleRearViewCamera/overlay 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