• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2020 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# This makefile contains the system partition contents for
17# a generic TV device.
18$(call inherit-product, $(SRC_TARGET_DIR)/product/media_system.mk)
19
20$(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk)
21$(call inherit-product-if-exists, external/google-fonts/dancing-script/fonts.mk)
22$(call inherit-product-if-exists, external/google-fonts/carrois-gothic-sc/fonts.mk)
23$(call inherit-product-if-exists, external/google-fonts/coming-soon/fonts.mk)
24$(call inherit-product-if-exists, external/google-fonts/cutive-mono/fonts.mk)
25$(call inherit-product-if-exists, external/noto-fonts/fonts.mk)
26$(call inherit-product-if-exists, external/roboto-fonts/fonts.mk)
27$(call inherit-product-if-exists, external/hyphenation-patterns/patterns.mk)
28$(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk)
29$(call inherit-product-if-exists, frameworks/webview/chromium/chromium.mk)
30
31PRODUCT_IS_ATV := true
32
33PRODUCT_PACKAGES += \
34    TvProvider
35
36# PRODUCT_SUPPORTS_TUNER: Whether the product hardware tuner. When 'false',
37# we drop mediatuner, which saves ~4 MiB of RAM. When 'true', the tuner HAL
38# should be implemented in vendor partition and android.hardware.tv.tuner
39# permission should be installed.
40#
41# Defaults to true to mimic legacy behaviour.
42PRODUCT_SUPPORTS_TUNER ?= true
43ifeq ($(PRODUCT_SUPPORTS_TUNER),true)
44    PRODUCT_PACKAGES += libmedia_tv_tuner
45endif
46
47# From build/target/product/core.mk
48PRODUCT_PACKAGES += \
49    BasicDreams \
50    Bluetooth \
51    CalendarProvider \
52    CaptivePortalLogin \
53    CertInstaller \
54    ExternalStorageProvider \
55    FusedLocation \
56    InputDevices \
57    KeyChain \
58    librs_jni \
59    PacProcessor \
60    PrintSpooler \
61    ProxyHandler \
62    SharedStorageBackup \
63    screenrecord \
64    UserDictionaryProvider \
65    VpnDialogs \
66    com.android.media.tv.remoteprovider
67
68# Device owner provisioning for devices defining device_admin
69PRODUCT_PACKAGES += \
70    ManagedProvisioning
71
72
73# PRODUCT_SUPPORTS_CAMERA: Whether the product supports cameras at all
74# (built-in or external USB camera). When 'false', we drop cameraserver, which
75# saves ~3 MiB of RAM. When 'true', additional settings are required for
76# external webcams to work, see "External USB Cameras" documentation.
77#
78# Defaults to true to mimic legacy behaviour.
79PRODUCT_SUPPORTS_CAMERA ?= true
80ifeq ($(PRODUCT_SUPPORTS_CAMERA),true)
81    PRODUCT_PACKAGES += cameraserver
82else
83    # When cameraserver is not included, we need to configure Camera API to not
84    # connect to it.
85    PRODUCT_PROPERTY_OVERRIDES += config.disable_cameraservice=true
86endif
87
88# SDK builds needs to build layoutlib-legacy that depends on debug info
89ifneq ($(PRODUCT_IS_ATV_SDK),true)
90    # Strip the local variable table and the local variable type table to reduce
91    # the size of the system image. This has no bearing on stack traces, but will
92    # leave less information available via JDWP.
93    # From //build/make/target/product/go_defaults_common.mk
94    PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
95
96    # Do not generate libartd.
97    # From //build/make/target/product/go_defaults_common.mk
98    PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
99endif
100
101# Enable frame-exact AV sync
102PRODUCT_PROPERTY_OVERRIDES += \
103    persist.sys.media.avsync=true
104
105# Update Display.getDeviceProductInfo() on hotplug
106PRODUCT_PROPERTY_OVERRIDES += \
107    ro.surface_flinger.update_device_product_info_on_hotplug_reconnect=1
108
109# Copy .kl file for generic voice remotes
110PRODUCT_COPY_FILES += \
111    device/google/atv/Generic.kl:system/usr/keylayout/Generic.kl
112
113PRODUCT_COPY_FILES += \
114    device/google/atv/permissions/tv_core_hardware.xml:system/etc/permissions/tv_core_hardware.xml
115
116PRODUCT_COPY_FILES += \
117    frameworks/av/media/libeffects/data/audio_effects.conf:system/etc/audio_effects.conf
118