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/bluetooth/device_vendor.mk) 24$(call inherit-product, device/google/cuttlefish/shared/graphics/device_vendor.mk) 25$(call inherit-product, device/google/cuttlefish/shared/swiftshader/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$(call inherit-product-if-exists, vendor/google/tv/gcbs/projects/reference-v4/dtvstack.mk) 29 30# Loads the camera HAL and which set of cameras is required. 31$(call inherit-product, device/google/cuttlefish/shared/camera/device_vendor.mk) 32$(call inherit-product, device/google/cuttlefish/shared/camera/config/external.mk) 33 34# Extend cuttlefish common sepolicy with tv-specific functionality 35BOARD_SEPOLICY_DIRS += device/google/cuttlefish/shared/tv/sepolicy/vendor 36 37PRODUCT_PACKAGES += tv_excluded_hardware.prebuilt.xml 38 39PRODUCT_COPY_FILES += \ 40 device/google/cuttlefish/shared/config/media_codecs_google_tv.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_tv.xml \ 41 frameworks/native/data/etc/android.hardware.hdmi.cec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.hdmi.cec.xml \ 42 frameworks/native/data/etc/android.hardware.tv.tuner.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.tv.tuner.xml \ 43 hardware/interfaces/tv/tuner/config/sample_tuner_vts_config_1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tuner_vts_config_1_0.xml \ 44 hardware/interfaces/tv/tuner/config/sample_tuner_vts_config_1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tuner_vts_config_1_1.xml \ 45 hardware/interfaces/tv/tuner/config/sample_tuner_vts_config_aidl_V1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/tuner_vts_config_aidl_V1.xml 46 47# Bluetooth hardware properties. 48ifeq ($(TARGET_PRODUCT_PROP),) 49TARGET_PRODUCT_PROP := $(LOCAL_PATH)/product.prop 50endif 51 52# HDMI AIDL HAL 53PRODUCT_PACKAGES += \ 54 android.hardware.tv.hdmi.connection-service 55 56# CEC AIDL HAL 57PRODUCT_PACKAGES += \ 58 android.hardware.tv.hdmi.cec-service 59 60# EARC AIDL HAL 61PRODUCT_PACKAGES += \ 62 android.hardware.tv.hdmi.earc-service 63 64# Setup HDMI CEC as Playback Device 65PRODUCT_PROPERTY_OVERRIDES += \ 66 ro.hdmi.device_type=4 \ 67 ro.hdmi.cec_device_types=playback_device 68 69# Tuner lazy HAL 70PRODUCT_PACKAGES += android.hardware.tv.tuner-service.example-lazy 71PRODUCT_VENDOR_PROPERTIES += ro.tuner.lazyhal=true 72 73# TV Input HAL 74PRODUCT_PACKAGES += android.hardware.tv.input-service.example 75 76# Sample Tuner Input for testing 77#PRODUCT_PACKAGES += LiveTv sampletunertvinput 78 79# Fallback IME and Home apps. Avoid loading on internal CF devices. 80ifneq ($(PRODUCT_IS_ATV_CF),true) 81 PRODUCT_PACKAGES += LeanbackIME TvSampleLeanbackLauncher 82endif 83 84# Enabling managed profiles 85DEVICE_PACKAGE_OVERLAYS += device/google/cuttlefish/shared/tv/overlay 86 87TARGET_BOARD_INFO_FILE ?= device/google/cuttlefish/shared/tv/android-info.txt 88 89# Override the Cuttlefish overlays with their .google variants. 90PRODUCT_PACKAGES += \ 91 CuttlefishTetheringOverlayGoogle \ 92 CuttlefishWifiOverlayGoogle \ 93 TvWifiOverlayGoogle 94 95# OEM Key: 96# ATV00 - Schema identifier. 97# 0 - Voice remote not included. 98# 000 - Not a panel TV. 99# 24 - Year of production. 100# CUTTLEFISH - Custom OEM key for future use. 101# EMU - Last 3 char for custom targeting. 102PRODUCT_PRODUCT_PROPERTIES += \ 103 ro.oem.key1=ATV00000024CUTTLEFISHEMU 104