1#
2# Copyright (C) 2014 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_IS_ATV := true
18
19PRODUCT_PACKAGES := \
20    TvProvider \
21    TvSettings \
22    tv_input.default
23
24PRODUCT_COPY_FILES := \
25    device/google/atv/permissions/tv_core_hardware.xml:system/etc/permissions/tv_core_hardware.xml
26
27DEVICE_PACKAGE_OVERLAYS := \
28    device/google/atv/overlay
29
30# From build/target/product/core_base.mk
31PRODUCT_PACKAGES += \
32    ContactsProvider \
33    DefaultContainerService \
34    UserDictionaryProvider \
35    libaudiopreprocessing \
36    libfilterpack_imageproc \
37    libgabi++ \
38    libkeystore \
39    libstagefright_soft_aacdec \
40    libstagefright_soft_aacenc \
41    libstagefright_soft_amrdec \
42    libstagefright_soft_amrnbenc \
43    libstagefright_soft_amrwbenc \
44    libstagefright_soft_avcdec \
45    libstagefright_soft_avcenc \
46    libstagefright_soft_flacenc \
47    libstagefright_soft_g711dec \
48    libstagefright_soft_gsmdec \
49    libstagefright_soft_hevcdec \
50    libstagefright_soft_mp3dec \
51    libstagefright_soft_mpeg2dec \
52    libstagefright_soft_mpeg4dec \
53    libstagefright_soft_mpeg4enc \
54    libstagefright_soft_opusdec \
55    libstagefright_soft_rawdec \
56    libstagefright_soft_vorbisdec \
57    libstagefright_soft_vpxdec \
58    libstagefright_soft_vpxenc \
59    mdnsd \
60    requestsync
61
62# From build/target/product/core.mk
63PRODUCT_PACKAGES += \
64    BasicDreams \
65    CalendarProvider \
66    CaptivePortalLogin \
67    CertInstaller \
68    ExternalStorageProvider \
69    FusedLocation \
70    InputDevices \
71    KeyChain \
72    PicoTts \
73    PacProcessor \
74    PrintSpooler \
75    ProxyHandler \
76    SharedStorageBackup \
77    VpnDialogs \
78    com.android.media.tv.remoteprovider \
79    com.android.media.tv.remoteprovider.xml
80
81# From build/target/product/generic_no_telephony.mk
82PRODUCT_PACKAGES += \
83    Bluetooth \
84    SystemUI \
85    librs_jni \
86    audio.primary.default \
87    clatd \
88    clatd.conf \
89    local_time.default \
90    screenrecord
91
92PRODUCT_COPY_FILES += \
93    frameworks/av/media/libeffects/data/audio_effects.conf:system/etc/audio_effects.conf
94
95# Enable frame-exact AV sync
96PRODUCT_PROPERTY_OVERRIDES += \
97    persist.sys.media.avsync=true
98
99# Do not include the Live Channels app if USE_OEM_TV_APP flag is set.
100# The feature com.google.android.tv.installed is used to tell whether a device
101# has the pre-installed Live Channels app. This is necessary for the Play Store
102# to identify the compatible devices that can install later updates of the app.
103ifneq ($(USE_OEM_TV_APP),true)
104    ifneq ($(PRODUCT_IS_ATV_SDK),true)
105        PRODUCT_PACKAGES += TV
106    else
107        PRODUCT_PACKAGES += LiveTv
108    endif # if PRODUCT_IS_ATV_SDK
109
110    PRODUCT_COPY_FILES += \
111        device/google/atv/permissions/com.google.android.tv.installed.xml:system/etc/permissions/com.google.android.tv.installed.xml
112endif
113
114# To enable access to /dev/dvb*
115BOARD_SEPOLICY_DIRS += device/google/atv/sepolicy
116
117# This property defines the tutorial content for this device
118PRODUCT_PROPERTY_OVERRIDES += \
119    ro.tutorials_content.android=android8
120
121# Content for ATV Tutorials / Post-Setup Tour
122PRODUCT_COPY_FILES += \
123    device/google/atv/tutorial-library-google.zip.etag:system/media/tutorial-library-google.zip.etag
124
125PRODUCT_COPY_FILES += \
126    device/google/atv/tutorial-library-google.zip:system/media/tutorial-library-google.zip
127
128$(call inherit-product-if-exists, frameworks/base/data/sounds/AudioTv.mk)
129$(call inherit-product-if-exists, external/svox/pico/lang/all_pico_languages.mk)
130$(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk)
131$(call inherit-product-if-exists, external/google-fonts/dancing-script/fonts.mk)
132$(call inherit-product-if-exists, external/google-fonts/carrois-gothic-sc/fonts.mk)
133$(call inherit-product-if-exists, external/google-fonts/coming-soon/fonts.mk)
134$(call inherit-product-if-exists, external/google-fonts/cutive-mono/fonts.mk)
135$(call inherit-product-if-exists, external/noto-fonts/fonts.mk)
136$(call inherit-product-if-exists, external/roboto-fonts/fonts.mk)
137$(call inherit-product-if-exists, external/hyphenation-patterns/patterns.mk)
138$(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk)
139$(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk)
140$(call inherit-product, $(SRC_TARGET_DIR)/product/core_minimal.mk)
141