1# 2# Copyright (C) 2022 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 16PRODUCT_PACKAGES += CarEvsServiceOverlay 17 18ifeq ($(ENABLE_MOCK_EVSHAL), true) 19CUSTOMIZE_EVS_SERVICE_PARAMETER := true 20PRODUCT_PACKAGES += \ 21 android.hardware.automotive.evs-aidl-default-service 22 23PRODUCT_COPY_FILES += \ 24 device/generic/car/emulator/evs/init.evs.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.evs.rc 25endif 26 27ifeq ($(ENABLE_SAMPLE_EVS_APP), true) 28PRODUCT_COPY_FILES += \ 29 device/generic/car/emulator/evs/evs_app_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/automotive/evs/config_override.json 30ifneq ($(ENABLE_EVS_SAMPLE), true) 31# We need to add evs_app package and its selinux policy if ENABLE_EVS_SAMPLE is not set as true. 32PRODUCT_PACKAGES += evs_app 33$(call inherit-product, packages/services/Car/cpp/evs/apps/sepolicy/evsapp.mk) 34endif # ENABLE_EVS_SAMPLE 35endif # ENABLE_SAMPLE_EVS_APP 36