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 product partition contents for 17# a generic TV device. 18$(call inherit-product, $(SRC_TARGET_DIR)/product/media_product.mk) 19 20PRODUCT_PACKAGES += \ 21 TvNetworkStackOverlay \ 22 TvFrameworkOverlay \ 23 TvSettingsProviderOverlay \ 24 TvWifiOverlay \ 25 SettingsIntelligence 26 27# Override com.android.* overlays with com.google.android.* overlays for mainline 28ifeq ($(PRODUCT_IS_ATV_MAINLINE), true) 29PRODUCT_PACKAGES += \ 30 TvWifiOverlayGoogle 31endif 32 33PRODUCT_COPY_FILES += \ 34 device/google/atv/atv-component-overrides.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/atv-component-overrides.xml 35 36PRODUCT_COPY_FILES += \ 37 frameworks/native/data/etc/android.hardware.gamepad.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/android.hardware.gamepad.xml 38 39# Too many tombstones can cause bugreports to grow too large to be uploaded. 40PRODUCT_PRODUCT_PROPERTIES += \ 41 tombstoned.max_tombstone_count?=10 42 43# Limit persistent logs to 10MB 44PRODUCT_PRODUCT_PROPERTIES += \ 45 logd.logpersistd.size=5 \ 46 logd.logpersistd.rotate_kbytes=2048 47