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 17PRODUCT_MANIFEST_FILES += device/google/cuttlefish/shared/config/product_manifest.xml 18SYSTEM_EXT_MANIFEST_FILES += device/google/cuttlefish/shared/config/system_ext_manifest.xml 19 20$(call inherit-product, device/google/atv/products/atv_vendor.mk) 21 22$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) 23$(call inherit-product, device/google/cuttlefish/shared/graphics/device_vendor.mk) 24$(call inherit-product, device/google/cuttlefish/shared/swiftshader/device_vendor.mk) 25$(call inherit-product, device/google/cuttlefish/shared/camera/device_vendor.mk) 26$(call inherit-product, device/google/cuttlefish/shared/virgl/device_vendor.mk) 27$(call inherit-product, device/google/cuttlefish/shared/device.mk) 28 29# Extend cuttlefish common sepolicy with tv-specific functionality 30BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/tv/sepolicy/vendor 31 32PRODUCT_COPY_FILES += \ 33 device/google/cuttlefish/shared/config/media_codecs_google_tv.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_tv.xml \ 34 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \ 35 frameworks/native/data/etc/android.hardware.hdmi.cec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.hdmi.cec.xml \ 36 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \ 37 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \ 38 frameworks/native/data/etc/android.hardware.tv.tuner.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.tv.tuner.xml \ 39 hardware/interfaces/tv/tuner/config/sample_tuner_vts_config_1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tuner_vts_config_1_0.xml \ 40 hardware/interfaces/tv/tuner/config/sample_tuner_vts_config_1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tuner_vts_config_1_1.xml \ 41 hardware/interfaces/tv/tuner/config/sample_tuner_vts_config_aidl_V1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tuner_vts_config_aidl_V1.xml 42 43# HDMI AIDL HAL 44PRODUCT_PACKAGES += \ 45 android.hardware.tv.hdmi.connection-service 46 47# CEC AIDL HAL 48PRODUCT_PACKAGES += \ 49 android.hardware.tv.hdmi.cec-service 50 51# EARC AIDL HAL 52PRODUCT_PACKAGES += \ 53 android.hardware.tv.hdmi.earc-service 54 55# Setup HDMI CEC as Playback Device 56PRODUCT_PROPERTY_OVERRIDES += ro.hdmi.device_type=4 57 58# Tuner lazy HAL 59PRODUCT_PACKAGES += android.hardware.tv.tuner-service.example-lazy 60PRODUCT_VENDOR_PROPERTIES += ro.tuner.lazyhal=true 61 62# TV Input HAL 63PRODUCT_PACKAGES += android.hardware.tv.input-service.example 64 65# Sample Tuner Input for testing 66#PRODUCT_PACKAGES += LiveTv sampletunertvinput 67 68# Fallback IME and Home apps 69PRODUCT_PACKAGES += LeanbackIME TvSampleLeanbackLauncher 70 71# Enabling managed profiles 72DEVICE_PACKAGE_OVERLAYS += device/google/cuttlefish/shared/tv/overlay 73 74TARGET_BOARD_INFO_FILE ?= device/google/cuttlefish/shared/tv/android-info.txt 75