1#
2# Copyright (C) 2017 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
17DEVICE_MANIFEST_FILE += device/google/cuttlefish/shared/config/manifest.xml
18DEVICE_MANIFEST_FILE += device/google/cuttlefish/shared/tv/manifest.xml
19
20$(call inherit-product, $(SRC_TARGET_DIR)/product/core_minimal.mk)
21$(call inherit-product, device/google/cuttlefish/shared/device.mk)
22
23# Extend cuttlefish common sepolicy with tv-specific functionality
24BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/tv/sepolicy/vendor
25
26PRODUCT_COPY_FILES += \
27    device/google/atv/permissions/tv_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/tv_core_hardware.xml \
28    frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
29    frameworks/native/data/etc/android.hardware.hdmi.cec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.hdmi.cec.xml \
30    frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
31    frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
32    frameworks/native/data/etc/android.hardware.touchscreen.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.xml \
33
34# HDMI CEC HAL
35PRODUCT_PACKAGES += android.hardware.tv.cec@1.0-service.mock
36
37# Tuner HAL
38PRODUCT_PACKAGES += android.hardware.tv.tuner@1.0-service
39
40# Enabling managed profiles
41DEVICE_PACKAGE_OVERLAYS += device/google/cuttlefish/shared/tv/overlay
42