Sam Hurst | ace8018 | 2016-03-18 09:42:02 -0700 | [diff] [blame] | 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 | |
Cole Faust | c9d5f54 | 2020-09-01 11:19:03 -0700 | [diff] [blame] | 20 | ifeq ($(DISABLE_CAR_PRODUCT_CONFIG_OVERLAY),) |
Guobin Zhang | d1033c3 | 2017-08-25 15:54:48 +0800 | [diff] [blame] | 21 | PRODUCT_PACKAGE_OVERLAYS += packages/services/Car/car_product/overlay |
Cole Faust | c9d5f54 | 2020-09-01 11:19:03 -0700 | [diff] [blame] | 22 | endif |
| 23 | |
| 24 | ifeq ($(DISABLE_CAR_PRODUCT_VISUAL_OVERLAY),) |
| 25 | PRODUCT_PACKAGE_OVERLAYS += packages/services/Car/car_product/overlay-visual |
| 26 | endif |
Sam Hurst | ace8018 | 2016-03-18 09:42:02 -0700 | [diff] [blame] | 27 | |
Calvin Huang | 45d71fe | 2020-07-16 15:48:48 -0700 | [diff] [blame] | 28 | PRODUCT_COPY_FILES += \ |
| 29 | packages/services/Car/car_product/build/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml \ |
| 30 | |
Sam Hurst | ace8018 | 2016-03-18 09:42:02 -0700 | [diff] [blame] | 31 | PRODUCT_PACKAGES += \ |
Roshan Pius | a2354e3 | 2019-11-21 10:23:19 -0800 | [diff] [blame] | 32 | com.android.wifi \ |
Sam Hurst | ace8018 | 2016-03-18 09:42:02 -0700 | [diff] [blame] | 33 | Home \ |
| 34 | BasicDreams \ |
| 35 | CaptivePortalLogin \ |
| 36 | CertInstaller \ |
Sam Hurst | ace8018 | 2016-03-18 09:42:02 -0700 | [diff] [blame] | 37 | DocumentsUI \ |
| 38 | DownloadProviderUi \ |
| 39 | FusedLocation \ |
| 40 | InputDevices \ |
| 41 | KeyChain \ |
| 42 | Keyguard \ |
| 43 | LatinIME \ |
| 44 | Launcher2 \ |
Sam Hurst | ace8018 | 2016-03-18 09:42:02 -0700 | [diff] [blame] | 45 | PacProcessor \ |
Sam Hurst | ace8018 | 2016-03-18 09:42:02 -0700 | [diff] [blame] | 46 | PrintSpooler \ |
| 47 | ProxyHandler \ |
| 48 | Settings \ |
| 49 | SharedStorageBackup \ |
| 50 | VpnDialogs \ |
| 51 | MmsService \ |
| 52 | ExternalStorageProvider \ |
| 53 | atrace \ |
| 54 | libandroidfw \ |
Sam Hurst | ace8018 | 2016-03-18 09:42:02 -0700 | [diff] [blame] | 55 | libaudioutils \ |
Sam Hurst | ace8018 | 2016-03-18 09:42:02 -0700 | [diff] [blame] | 56 | libmdnssd \ |
| 57 | libnfc_ndef \ |
| 58 | libpowermanager \ |
Sam Hurst | ace8018 | 2016-03-18 09:42:02 -0700 | [diff] [blame] | 59 | libvariablespeed \ |
Pavel Maltsev | 0d07c76 | 2016-11-03 16:40:15 -0700 | [diff] [blame] | 60 | A2dpSinkService \ |
Selim Gurun | c4d7c01 | 2019-05-13 20:27:22 -0700 | [diff] [blame] | 61 | PackageInstaller \ |
Zhomart Mukhamejanov | 6180b8c | 2021-03-04 12:03:46 -0800 | [diff] [blame] | 62 | carbugreportd \ |
Seth Moore | 32d56d2 | 2021-01-19 17:25:23 +0000 | [diff] [blame] | 63 | vehicle_binding_util \ |
Pavel Maltsev | 2cc76d0 | 2017-02-14 12:28:33 -0800 | [diff] [blame] | 64 | |
Changyeon Jo | be5943c | 2021-07-29 15:18:25 -0700 | [diff] [blame] | 65 | # ENABLE_CAMERA_SERVICE must be set as true from the product's makefile if it wants to support |
| 66 | # Android Camera service. |
| 67 | ifneq ($(ENABLE_CAMERA_SERVICE), true) |
| 68 | PRODUCT_PROPERTY_OVERRIDES += config.disable_cameraservice=true |
| 69 | endif |
| 70 | |
Changyeon Jo | 4b180f7 | 2020-09-08 13:20:09 -0700 | [diff] [blame] | 71 | # EVS service |
| 72 | include packages/services/Car/cpp/evs/manager/evsmanager.mk |
| 73 | |
| 74 | ifeq ($(ENABLE_EVS_SAMPLE), true) |
| 75 | # ENABLE_EVS_SAMPLE should set be true or their vendor specific equivalents should be included in |
| 76 | # the device.mk with the corresponding selinux policies |
| 77 | PRODUCT_PRODUCT_PROPERTIES += persist.automotive.evs.mode=0 |
| 78 | PRODUCT_PACKAGES += evs_app \ |
| 79 | android.hardware.automotive.evs@1.1-sample \ |
| 80 | android.frameworks.automotive.display@1.0-service |
| 81 | include packages/services/Car/cpp/evs/apps/sepolicy/evsapp.mk |
| 82 | include packages/services/Car/cpp/evs/sampleDriver/sepolicy/evsdriver.mk |
| 83 | endif |
Changyeon Jo | 63f3d05 | 2021-05-11 12:10:47 -0700 | [diff] [blame] | 84 | ifeq ($(ENABLE_CAREVSSERVICE_SAMPLE), true) |
Changyeon Jo | d37770d | 2021-09-20 21:45:39 -0700 | [diff] [blame] | 85 | PRODUCT_PACKAGES += CarEvsCameraPreviewApp |
Changyeon Jo | 63f3d05 | 2021-05-11 12:10:47 -0700 | [diff] [blame] | 86 | endif |
Yuncheol Heo | 039b8ad | 2020-10-08 17:14:44 -0700 | [diff] [blame] | 87 | ifeq ($(ENABLE_REAR_VIEW_CAMERA_SAMPLE), true) |
| 88 | PRODUCT_PACKAGES += SampleRearViewCamera |
| 89 | PRODUCT_PACKAGE_OVERLAYS += packages/services/Car/tests/SampleRearViewCamera/overlay |
| 90 | endif |
Scott Randolph | da289be | 2017-03-30 14:30:34 -0700 | [diff] [blame] | 91 | |
Bryan Eyler | 77096de | 2017-05-24 13:50:51 -0700 | [diff] [blame] | 92 | # Device running Android is a car |
| 93 | PRODUCT_COPY_FILES += \ |
| 94 | frameworks/native/data/etc/android.hardware.type.automotive.xml:system/etc/permissions/android.hardware.type.automotive.xml |
| 95 | |
Lujiang Xue | c66ccf4 | 2017-09-07 09:26:13 -0700 | [diff] [blame] | 96 | # Default permission grant exceptions |
| 97 | PRODUCT_COPY_FILES += \ |
Felipe Leme | 707a419 | 2019-10-22 11:16:36 -0700 | [diff] [blame] | 98 | packages/services/Car/car_product/build/preinstalled-packages-product-car-base.xml:system/etc/sysconfig/preinstalled-packages-product-car-base.xml |
Lujiang Xue | c66ccf4 | 2017-09-07 09:26:13 -0700 | [diff] [blame] | 99 | |
Sam Hurst | ace8018 | 2016-03-18 09:42:02 -0700 | [diff] [blame] | 100 | $(call inherit-product, $(SRC_TARGET_DIR)/product/core_minimal.mk) |
| 101 | |
Eric Jeong | 889fca0 | 2019-10-28 20:28:37 -0700 | [diff] [blame] | 102 | # Default dex optimization configurations |
| 103 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 104 | pm.dexopt.disable_bg_dexopt=true |
Eric Jeong | 0bea43a | 2019-11-15 14:30:45 -0800 | [diff] [blame] | 105 | |
| 106 | # Required init rc files for car |
| 107 | PRODUCT_COPY_FILES += \ |
| 108 | packages/services/Car/car_product/init/init.bootstat.rc:system/etc/init/init.bootstat.car.rc \ |
| 109 | packages/services/Car/car_product/init/init.car.rc:system/etc/init/init.car.rc |
Eric Jeong | 674dfcc | 2020-01-23 15:29:58 -0800 | [diff] [blame] | 110 | |
Felipe Leme | 7c481af | 2021-08-06 15:50:50 -0700 | [diff] [blame] | 111 | # Device policy management support |
| 112 | PRODUCT_COPY_FILES += \ |
| 113 | frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml |
| 114 | |
Eric Jeong | 674dfcc | 2020-01-23 15:29:58 -0800 | [diff] [blame] | 115 | # Enable car watchdog |
Eric Jeong | 421ebfb | 2020-08-03 11:17:02 -0700 | [diff] [blame] | 116 | include packages/services/Car/cpp/watchdog/product/carwatchdog.mk |
Eric Jeong | 5a8ed38 | 2020-09-11 14:51:36 -0700 | [diff] [blame] | 117 | |
| 118 | # Enable car power policy |
| 119 | include packages/services/Car/cpp/powerpolicy/product/carpowerpolicy.mk |