SzuWei Lin | 6fdff23 | 2017-06-06 16:54:57 +0800 | [diff] [blame] | 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 | |
SzuWei Lin | 2999f29 | 2017-08-14 17:47:28 +0800 | [diff] [blame] | 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 | |
SzuWei Lin | 558f3dd | 2017-09-06 16:39:27 +0800 | [diff] [blame] | 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 | |
SzuWei Lin | 6fdff23 | 2017-06-06 16:54:57 +0800 | [diff] [blame] | 26 | # Split selinux policy |
| 27 | PRODUCT_FULL_TREBLE_OVERRIDE := true |
| 28 | |
Hung-ying Tyan | a4a944b | 2017-09-28 12:03:41 +0800 | [diff] [blame] | 29 | # The Messaging app: |
| 30 | # Needed for android.telecom.cts.ExtendedInCallServiceTest#testOnCannedTextResponsesLoaded |
| 31 | PRODUCT_PACKAGES += \ |
| 32 | messaging |
| 33 | |
SzuWei Lin | 3cbe82d | 2017-08-11 17:30:17 +0800 | [diff] [blame] | 34 | # All VNDK libraries (HAL interfaces, VNDK, VNDK-SP, LL-NDK) |
| 35 | PRODUCT_PACKAGES += vndk_package |
SzuWei Lin | 56d68a5 | 2017-06-09 18:23:47 +0800 | [diff] [blame] | 36 | |
| 37 | # SP-NDK: |
| 38 | PRODUCT_PACKAGES += \ |
SzuWei Lin | 56d68a5 | 2017-06-09 18:23:47 +0800 | [diff] [blame] | 39 | libvulkan \ |
| 40 | |
SzuWei Lin | 6fdff23 | 2017-06-06 16:54:57 +0800 | [diff] [blame] | 41 | # The following policy XML files are used as fallback for |
| 42 | # vendors/devices not using XML to configure audio policy. |
| 43 | PRODUCT_COPY_FILES += \ |
Isaac Chen | 924e705 | 2017-06-12 18:56:50 +0800 | [diff] [blame] | 44 | frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:system/etc/audio_policy_configuration.xml \ |
| 45 | frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:system/etc/primary_audio_policy_configuration.xml \ |
SzuWei Lin | 6fdff23 | 2017-06-06 16:54:57 +0800 | [diff] [blame] | 46 | frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:system/etc/r_submix_audio_policy_configuration.xml \ |
| 47 | frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:system/etc/audio_policy_volumes.xml \ |
| 48 | frameworks/av/services/audiopolicy/config/default_volume_tables.xml:system/etc/default_volume_tables.xml \ |
SzuWei Lin | fe31917 | 2017-06-19 17:21:47 +0800 | [diff] [blame] | 49 | |
| 50 | # Bluetooth: |
| 51 | # audio.a2dp.default is a system module. Generic system image includes |
| 52 | # audio.a2dp.default to support A2DP if board has the capability. |
| 53 | PRODUCT_PACKAGES += \ |
| 54 | audio.a2dp.default |
SzuWei Lin | 599fefa | 2017-07-12 16:56:43 +0800 | [diff] [blame] | 55 | |
| 56 | # Net: |
| 57 | # Vendors can use the platform-provided network configuration utilities (ip, |
| 58 | # iptable, etc.) to configure the Linux networking stack, but these utilities |
| 59 | # do not yet include a HIDL interface wrapper. This is a solution on |
| 60 | # Android O. |
| 61 | PRODUCT_PACKAGES += \ |
| 62 | netutils-wrapper-1.0 |
Bowgo Tsai | 9afc0d5 | 2017-07-27 21:22:14 +0800 | [diff] [blame] | 63 | |
SzuWei Lin | 9cec456 | 2017-12-08 10:54:43 +0800 | [diff] [blame] | 64 | # Telephony: |
| 65 | # Provide a default APN configuration |
| 66 | PRODUCT_COPY_FILES += \ |
| 67 | device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml |
| 68 | |
Justin Yun | 7466843 | 2018-02-19 18:07:37 +0900 | [diff] [blame] | 69 | # NFC: |
| 70 | # Provide default libnfc-nci.conf file for devices that does not have one in |
| 71 | # vendor/etc |
| 72 | PRODUCT_COPY_FILES += \ |
| 73 | device/generic/common/nfc/libnfc-nci.conf:system/etc/libnfc-nci.conf |
| 74 | |
Justin Yun | e3a7b1b | 2018-01-16 14:16:39 +0900 | [diff] [blame] | 75 | # Support for the devices with no VNDK enforcing |
Justin Yun | fc951ff | 2017-12-19 18:39:10 +0900 | [diff] [blame] | 76 | PRODUCT_COPY_FILES += \ |
Justin Yun | fc951ff | 2017-12-19 18:39:10 +0900 | [diff] [blame] | 77 | build/make/target/product/vndk/init.gsi.rc:system/etc/init/init.gsi.rc \ |
| 78 | build/make/target/product/vndk/init.noenforce.rc:system/etc/init/gsi/init.noenforce.rc |
Justin Yun | c104764 | 2017-12-22 10:03:23 +0900 | [diff] [blame] | 79 | |
Justin Yun | e3a7b1b | 2018-01-16 14:16:39 +0900 | [diff] [blame] | 80 | # Name space configuration file for non-enforcing VNDK |
| 81 | PRODUCT_PACKAGES += \ |
| 82 | ld.config.noenforce.txt |
| 83 | |
| 84 | # Set current VNDK version for GSI |
Justin Yun | c104764 | 2017-12-22 10:03:23 +0900 | [diff] [blame] | 85 | PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \ |
| 86 | ro.gsi.vndk.version=$(PLATFORM_VNDK_VERSION) |