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/tv/manifest.xml 18 19$(call inherit-product, $(SRC_TARGET_DIR)/product/core_minimal.mk) 20$(call inherit-product, device/google/cuttlefish/shared/device.mk) 21 22# Extend cuttlefish common sepolicy with tv-specific functionality 23BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/tv/sepolicy/vendor 24 25PRODUCT_COPY_FILES += \ 26 device/google/atv/permissions/tv_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/tv_core_hardware.xml \ 27 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ 28 frameworks/native/data/etc/android.hardware.hdmi.cec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.hdmi.cec.xml \ 29 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \ 30 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \ 31 hardware/interfaces/tv/tuner/config/sample_tuner_vts_config_1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tuner_vts_config_1_0.xml \ 32 hardware/interfaces/tv/tuner/config/sample_tuner_vts_config_1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tuner_vts_config_1_1.xml \ 33 34# HDMI CEC HAL 35PRODUCT_PACKAGES += android.hardware.tv.cec@1.1-service 36 37# Setup HDMI CEC as Playback Device 38PRODUCT_PROPERTY_OVERRIDES += ro.hdmi.device_type=4 39 40# Tuner HAL 41PRODUCT_PACKAGES += android.hardware.tv.tuner@1.1-service 42 43# Enabling managed profiles 44DEVICE_PACKAGE_OVERLAYS += device/google/cuttlefish/shared/tv/overlay 45 46TARGET_BOARD_INFO_FILE ?= device/google/cuttlefish/shared/tv/android-info.txt 47