blob: 8fa29744ea73fbab8dfb67774ceb51ef37a9e9d9 [file] [log] [blame]
SzuWei Lin6fdff232017-06-06 16:54:57 +08001#
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 Lin2999f292017-08-14 17:47:28 +080017# 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 Lin558f3dd2017-09-06 16:39:27 +080022# 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 Lin6fdff232017-06-06 16:54:57 +080026# Split selinux policy
27PRODUCT_FULL_TREBLE_OVERRIDE := true
28
Hung-ying Tyana4a944b2017-09-28 12:03:41 +080029# The Messaging app:
30# Needed for android.telecom.cts.ExtendedInCallServiceTest#testOnCannedTextResponsesLoaded
31PRODUCT_PACKAGES += \
32 messaging
33
SzuWei Lin3cbe82d2017-08-11 17:30:17 +080034# All VNDK libraries (HAL interfaces, VNDK, VNDK-SP, LL-NDK)
35PRODUCT_PACKAGES += vndk_package
SzuWei Lin56d68a52017-06-09 18:23:47 +080036
37# SP-NDK:
38PRODUCT_PACKAGES += \
SzuWei Lin56d68a52017-06-09 18:23:47 +080039 libvulkan \
40
SzuWei Lin6fdff232017-06-06 16:54:57 +080041# The following policy XML files are used as fallback for
42# vendors/devices not using XML to configure audio policy.
43PRODUCT_COPY_FILES += \
Isaac Chen924e7052017-06-12 18:56:50 +080044 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 Lin6fdff232017-06-06 16:54:57 +080046 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 Linfe319172017-06-19 17:21:47 +080049
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.
53PRODUCT_PACKAGES += \
54 audio.a2dp.default
SzuWei Lin599fefa2017-07-12 16:56:43 +080055
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.
61PRODUCT_PACKAGES += \
62 netutils-wrapper-1.0
Bowgo Tsai9afc0d52017-07-27 21:22:14 +080063
SzuWei Lin9cec4562017-12-08 10:54:43 +080064# Telephony:
65# Provide a default APN configuration
66PRODUCT_COPY_FILES += \
67 device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml
68
Justin Yun74668432018-02-19 18:07:37 +090069# NFC:
70# Provide default libnfc-nci.conf file for devices that does not have one in
71# vendor/etc
72PRODUCT_COPY_FILES += \
73 device/generic/common/nfc/libnfc-nci.conf:system/etc/libnfc-nci.conf
74
Justin Yune3a7b1b2018-01-16 14:16:39 +090075# Support for the devices with no VNDK enforcing
Justin Yunfc951ff2017-12-19 18:39:10 +090076PRODUCT_COPY_FILES += \
Justin Yunfc951ff2017-12-19 18:39:10 +090077 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 Yunc1047642017-12-22 10:03:23 +090079
Justin Yune3a7b1b2018-01-16 14:16:39 +090080# Name space configuration file for non-enforcing VNDK
81PRODUCT_PACKAGES += \
82 ld.config.noenforce.txt
83
84# Set current VNDK version for GSI
Justin Yunc1047642017-12-22 10:03:23 +090085PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
86 ro.gsi.vndk.version=$(PLATFORM_VNDK_VERSION)