blob: 4d3cf5eef43edce6aba38ee920a4ed97e49e6ba6 [file] [log] [blame]
Sam Hurstace80182016-03-18 09:42:02 -07001#
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
Cole Faustc9d5f542020-09-01 11:19:03 -070020ifeq ($(DISABLE_CAR_PRODUCT_CONFIG_OVERLAY),)
Guobin Zhangd1033c32017-08-25 15:54:48 +080021PRODUCT_PACKAGE_OVERLAYS += packages/services/Car/car_product/overlay
Cole Faustc9d5f542020-09-01 11:19:03 -070022endif
23
24ifeq ($(DISABLE_CAR_PRODUCT_VISUAL_OVERLAY),)
25PRODUCT_PACKAGE_OVERLAYS += packages/services/Car/car_product/overlay-visual
26endif
Sam Hurstace80182016-03-18 09:42:02 -070027
Calvin Huang45d71fe2020-07-16 15:48:48 -070028PRODUCT_COPY_FILES += \
29 packages/services/Car/car_product/build/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml \
30
Sam Hurstace80182016-03-18 09:42:02 -070031PRODUCT_PACKAGES += \
Roshan Piusa2354e32019-11-21 10:23:19 -080032 com.android.wifi \
Sam Hurstace80182016-03-18 09:42:02 -070033 Home \
34 BasicDreams \
35 CaptivePortalLogin \
36 CertInstaller \
Sam Hurstace80182016-03-18 09:42:02 -070037 DocumentsUI \
38 DownloadProviderUi \
39 FusedLocation \
40 InputDevices \
41 KeyChain \
42 Keyguard \
43 LatinIME \
44 Launcher2 \
45 ManagedProvisioning \
Sam Hurstace80182016-03-18 09:42:02 -070046 PacProcessor \
Sam Hurstace80182016-03-18 09:42:02 -070047 PrintSpooler \
48 ProxyHandler \
49 Settings \
50 SharedStorageBackup \
51 VpnDialogs \
52 MmsService \
53 ExternalStorageProvider \
54 atrace \
55 libandroidfw \
Sam Hurstace80182016-03-18 09:42:02 -070056 libaudioutils \
Sam Hurstace80182016-03-18 09:42:02 -070057 libmdnssd \
58 libnfc_ndef \
59 libpowermanager \
Sam Hurstace80182016-03-18 09:42:02 -070060 libvariablespeed \
Pavel Maltsev0d07c762016-11-03 16:40:15 -070061 A2dpSinkService \
Selim Gurunc4d7c012019-05-13 20:27:22 -070062 PackageInstaller \
Zhomart Mukhamejanov6180b8c2021-03-04 12:03:46 -080063 carbugreportd \
Seth Moore32d56d22021-01-19 17:25:23 +000064 vehicle_binding_util \
Pavel Maltsev2cc76d02017-02-14 12:28:33 -080065
Changyeon Jobe5943c2021-07-29 15:18:25 -070066# ENABLE_CAMERA_SERVICE must be set as true from the product's makefile if it wants to support
67# Android Camera service.
68ifneq ($(ENABLE_CAMERA_SERVICE), true)
69PRODUCT_PROPERTY_OVERRIDES += config.disable_cameraservice=true
70endif
71
Changyeon Jo4b180f72020-09-08 13:20:09 -070072# EVS service
73include packages/services/Car/cpp/evs/manager/evsmanager.mk
74
75ifeq ($(ENABLE_EVS_SAMPLE), true)
76# ENABLE_EVS_SAMPLE should set be true or their vendor specific equivalents should be included in
77# the device.mk with the corresponding selinux policies
78PRODUCT_PRODUCT_PROPERTIES += persist.automotive.evs.mode=0
79PRODUCT_PACKAGES += evs_app \
80 android.hardware.automotive.evs@1.1-sample \
81 android.frameworks.automotive.display@1.0-service
82include packages/services/Car/cpp/evs/apps/sepolicy/evsapp.mk
83include packages/services/Car/cpp/evs/sampleDriver/sepolicy/evsdriver.mk
84endif
Changyeon Jo63f3d052021-05-11 12:10:47 -070085ifeq ($(ENABLE_CAREVSSERVICE_SAMPLE), true)
Changyeon Jod37770d2021-09-20 21:45:39 -070086PRODUCT_PACKAGES += CarEvsCameraPreviewApp
Changyeon Jo63f3d052021-05-11 12:10:47 -070087endif
Yuncheol Heo039b8ad2020-10-08 17:14:44 -070088ifeq ($(ENABLE_REAR_VIEW_CAMERA_SAMPLE), true)
89PRODUCT_PACKAGES += SampleRearViewCamera
90PRODUCT_PACKAGE_OVERLAYS += packages/services/Car/tests/SampleRearViewCamera/overlay
91endif
Scott Randolphda289be2017-03-30 14:30:34 -070092
Bryan Eyler77096de2017-05-24 13:50:51 -070093# Device running Android is a car
94PRODUCT_COPY_FILES += \
95 frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.hardware.type.automotive.xml
96
Lujiang Xuec66ccf42017-09-07 09:26:13 -070097# Default permission grant exceptions
98PRODUCT_COPY_FILES += \
Felipe Leme707a4192019-10-22 11:16:36 -070099 packages/services/Car/car_product/build/preinstalled-packages-product-car-base.xml:system/etc/sysconfig/preinstalled-packages-product-car-base.xml
Lujiang Xuec66ccf42017-09-07 09:26:13 -0700100
Sam Hurstace80182016-03-18 09:42:02 -0700101$(call inherit-product, $(SRC_TARGET_DIR)/product/core_minimal.mk)
102
Eric Jeong889fca02019-10-28 20:28:37 -0700103# Default dex optimization configurations
104PRODUCT_PROPERTY_OVERRIDES += \
105 pm.dexopt.disable_bg_dexopt=true
Eric Jeong0bea43a2019-11-15 14:30:45 -0800106
107# Required init rc files for car
108PRODUCT_COPY_FILES += \
109 packages/services/Car/car_product/init/init.bootstat.rc:system/etc/init/init.bootstat.car.rc \
110 packages/services/Car/car_product/init/init.car.rc:system/etc/init/init.car.rc
Eric Jeong674dfcc2020-01-23 15:29:58 -0800111
Felipe Leme7c481af2021-08-06 15:50:50 -0700112# Device policy management support
113PRODUCT_COPY_FILES += \
114 frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml
115
Eric Jeong674dfcc2020-01-23 15:29:58 -0800116# Enable car watchdog
Eric Jeong421ebfb2020-08-03 11:17:02 -0700117include packages/services/Car/cpp/watchdog/product/carwatchdog.mk
Eric Jeong5a8ed382020-09-11 14:51:36 -0700118
119# Enable car power policy
120include packages/services/Car/cpp/powerpolicy/product/carpowerpolicy.mk