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#
17# This file is included by other product makefiles to add all the
18# TV emulator-related modules to PRODUCT_PACKAGES.
19#
20
21# ATV SDK is not designed to have a GNSS-receiver by default
22EMULATOR_VENDOR_NO_GNSS := true
23
24$(call inherit-product, device/google/atv/products/atv_vendor.mk)
25
26# need this for gles libraries to load properly
27# after moving to /vendor/lib/
28PRODUCT_PACKAGES += \
29    vndk-sp
30
31DEVICE_PACKAGE_OVERLAYS += \
32    device/generic/goldfish/overlay \
33    device/google/atv/sdk_overlay \
34    development/sdk_overlay
35
36PRODUCT_CHARACTERISTICS := emulator
37
38PRODUCT_FULL_TREBLE_OVERRIDE := true
39
40PRODUCT_COPY_FILES += \
41    device/generic/goldfish/data/etc/config.ini.tv:config.ini
42
43PRODUCT_COPY_FILES += \
44    device/generic/goldfish/data/etc/apns-conf.xml:$(TARGET_COPY_OUT_VENDOR)/etc/apns-conf.xml \
45    device/generic/goldfish/camera/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
46    frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
47    frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
48    frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
49    frameworks/av/media/libstagefright/data/media_codecs_google_tv.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_tv.xml \
50    frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
51    hardware/libhardware_legacy/audio/audio_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy.conf
52
53# Exclude all non-default hardware features on ATV SDK.
54# All default supported features are defined via device/google/atv/permissions/tv_core_hardware.xml.
55PRODUCT_COPY_FILES += \
56    device/google/atv/permissions/tv_sdk_excluded_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/tv_sdk_excluded_core_hardware.xml
57
58# goldfish vendor partition configurations
59$(call inherit-product-if-exists, device/generic/goldfish/vendor.mk)
60
61#watchdog tiggers reboot because location service is not
62#responding, disble it for now.
63#still keep it on internal master as it is still working
64#once it is fixed in aosp, remove this block of comment.
65#PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
66#config.disable_location=true
67
68# enable Google-specific location features,
69# like NetworkLocationProvider and LocationCollector
70PRODUCT_SYSTEM_EXT_PROPERTIES += \
71    ro.com.google.locationfeatures=1
72
73# disable setupwizard
74PRODUCT_SYSTEM_EXT_PROPERTIES += \
75    ro.setupwizard.mode=DISABLED
76