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 # All VNDK libraries (HAL interfaces, VNDK, VNDK-SP, LL-NDK) 35 PRODUCT_PACKAGES += vndk_package 36 37 # SP-NDK: 38 PRODUCT_PACKAGES += \ 39 libvulkan \ 40 41 # Audio: 42 USE_XML_AUDIO_POLICY_CONF := 1 43 # The following policy XML files are used as fallback for 44 # vendors/devices not using XML to configure audio policy. 45 PRODUCT_COPY_FILES += \ 46 frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:system/etc/audio_policy_configuration.xml \ 47 frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:system/etc/primary_audio_policy_configuration.xml \ 48 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:system/etc/r_submix_audio_policy_configuration.xml \ 49 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:system/etc/audio_policy_volumes.xml \ 50 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:system/etc/default_volume_tables.xml \ 51 52 # Bluetooth: 53 # audio.a2dp.default is a system module. Generic system image includes 54 # audio.a2dp.default to support A2DP if board has the capability. 55 PRODUCT_PACKAGES += \ 56 audio.a2dp.default 57 58 # Net: 59 # Vendors can use the platform-provided network configuration utilities (ip, 60 # iptable, etc.) to configure the Linux networking stack, but these utilities 61 # do not yet include a HIDL interface wrapper. This is a solution on 62 # Android O. 63 PRODUCT_PACKAGES += \ 64 netutils-wrapper-1.0 65 66 # Android Verified Boot (AVB): 67 # Builds a special vbmeta.img that disables AVB verification. 68 # Otherwise, AVB will prevent the device from booting the generic system.img. 69 # Also checks that BOARD_AVB_ENABLE is not set, to prevent adding verity 70 # metadata into system.img. 71 ifeq ($(BOARD_AVB_ENABLE),true) 72 $(error BOARD_AVB_ENABLE cannot be set for Treble GSI) 73 endif 74 BOARD_BUILD_DISABLED_VBMETAIMAGE := true 75