github.com/westcoastroms/westcoastroms-build@v0.0.0-20190928114312-2350e5a73030/build/make/target/product/treble_common.mk (about)

     1  #
     2  # Copyright (C) 2017 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 with telephony
    23  $(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base.mk)
    24  $(call inherit-product, $(SRC_TARGET_DIR)/product/telephony.mk)
    25  
    26  # Split selinux policy
    27  PRODUCT_FULL_TREBLE_OVERRIDE := true
    28  
    29  # The Messaging app:
    30  #   Needed for android.telecom.cts.ExtendedInCallServiceTest#testOnCannedTextResponsesLoaded
    31  PRODUCT_PACKAGES += \
    32      messaging
    33  
    34  # The following policy XML files are used as fallback for
    35  # vendors/devices not using XML to configure audio policy.
    36  PRODUCT_COPY_FILES += \
    37      frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:system/etc/audio_policy_configuration.xml \
    38      frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:system/etc/primary_audio_policy_configuration.xml \
    39      frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:system/etc/r_submix_audio_policy_configuration.xml \
    40      frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:system/etc/audio_policy_volumes.xml \
    41      frameworks/av/services/audiopolicy/config/default_volume_tables.xml:system/etc/default_volume_tables.xml \
    42  
    43  # Telephony:
    44  #   Provide a default APN configuration
    45  PRODUCT_COPY_FILES += \
    46      device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml
    47  
    48  # NFC:
    49  #   Provide default libnfc-nci.conf file for devices that does not have one in
    50  #   vendor/etc
    51  PRODUCT_COPY_FILES += \
    52      device/generic/common/nfc/libnfc-nci.conf:system/etc/libnfc-nci.conf
    53  
    54  # Support for the O-MR1 devices
    55  PRODUCT_COPY_FILES += \
    56      build/make/target/product/vndk/init.gsi.rc:system/etc/init/init.gsi.rc \
    57      build/make/target/product/vndk/init.vndk-27.rc:system/etc/init/gsi/init.vndk-27.rc
    58  
    59  # Name space configuration file for non-enforcing VNDK
    60  PRODUCT_PACKAGES += \
    61      ld.config.vndk_lite.txt
    62  
    63  # Support addtional O-MR1 vendor interface
    64  PRODUCT_EXTRA_VNDK_VERSIONS := 27
    65  
    66  # TODO(b/78308559): includes vr_hwc into GSI before vr_hwc move to vendor
    67  PRODUCT_PACKAGES += \
    68      vr_hwc