Home | History | Annotate | Download | only in products
      1 #
      2 # Copyright (C) 2018 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 # PRODUCT_PROPERTY_OVERRIDES cannot be used here because sysprops will be at
     18 # /vendor/[build|default].prop when build split is on. In order to have sysprops
     19 # on the generic system image, place them in build/make/target/board/
     20 # treble_system.prop.
     21 
     22 # Generic system image inherits from AOSP
     23 $(call inherit-product, device/google/atv/products/atv_base.mk)
     24 
     25 # Split selinux policy
     26 PRODUCT_FULL_TREBLE_OVERRIDE := true
     27 
     28 # Packages required for ATV GSI
     29 PRODUCT_PACKAGES += \
     30     FrameworkPackageStubs \
     31     LatinIMEGoogleTvPrebuilt \
     32     TvProvision \
     33     TvSampleLeanbackLauncher
     34 
     35 # All VNDK libraries (HAL interfaces, VNDK, VNDK-SP, LL-NDK)
     36 PRODUCT_PACKAGES += vndk_package
     37 
     38 # SP-NDK:
     39 PRODUCT_PACKAGES += \
     40     libvulkan \
     41 
     42 # The following policy XML files are used as fallback for
     43 # vendors/devices not using XML to configure audio policy.
     44 PRODUCT_COPY_FILES += \
     45     frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:system/etc/audio_policy_configuration.xml \
     46     frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:system/etc/primary_audio_policy_configuration.xml \
     47     frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:system/etc/r_submix_audio_policy_configuration.xml \
     48     frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:system/etc/audio_policy_volumes.xml \
     49     frameworks/av/services/audiopolicy/config/default_volume_tables.xml:system/etc/default_volume_tables.xml \
     50 
     51 # Bluetooth:
     52 #   audio.a2dp.default is a system module. Generic system image includes
     53 #   audio.a2dp.default to support A2DP if board has the capability.
     54 PRODUCT_PACKAGES += \
     55     audio.a2dp.default
     56 
     57 # Net:
     58 #   Vendors can use the platform-provided network configuration utilities (ip,
     59 #   iptable, etc.) to configure the Linux networking stack, but these utilities
     60 #   do not yet include a HIDL interface wrapper. This is a solution on
     61 #   Android O.
     62 PRODUCT_PACKAGES += \
     63     netutils-wrapper-1.0
     64 
     65 PRODUCT_COPY_FILES += \
     66     build/make/target/product/gsi/init.gsi.rc:system/etc/init/init.gsi.rc
     67 
     68 # Name space configuration file for non-enforcing VNDK
     69 PRODUCT_PACKAGES += \
     70     ld.config.noenforce.txt
     71 
     72 # Set current VNDK version for GSI
     73 PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
     74     ro.gsi.vndk.version=$(PLATFORM_VNDK_VERSION)
     75 
     76 # privapp-permissions whitelisting
     77 PRODUCT_COPY_FILES += \
     78     device/google/atv/permissions/privapp-permissions-atv-gsi.xml:system/etc/permissions/privapp-permissions-atv-gsi.xml
     79