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