blob: 5352e77abfe064bb1272c7b64ca62175b9fa5fe8 [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
SzuWei Lin5cde5312017-12-08 11:06:30 +080029# vintf utility:
30PRODUCT_PACKAGES += \
31 vintf
32
Hung-ying Tyana4a944b2017-09-28 12:03:41 +080033# The Messaging app:
34# Needed for android.telecom.cts.ExtendedInCallServiceTest#testOnCannedTextResponsesLoaded
35PRODUCT_PACKAGES += \
36 messaging
37
SzuWei Lin3cbe82d2017-08-11 17:30:17 +080038# All VNDK libraries (HAL interfaces, VNDK, VNDK-SP, LL-NDK)
39PRODUCT_PACKAGES += vndk_package
SzuWei Lin56d68a52017-06-09 18:23:47 +080040
41# SP-NDK:
42PRODUCT_PACKAGES += \
SzuWei Lin56d68a52017-06-09 18:23:47 +080043 libvulkan \
44
SzuWei Lin6fdff232017-06-06 16:54:57 +080045# The following policy XML files are used as fallback for
46# vendors/devices not using XML to configure audio policy.
47PRODUCT_COPY_FILES += \
Isaac Chen924e7052017-06-12 18:56:50 +080048 frameworks/av/services/audiopolicy/config/audio_policy_configuration_generic.xml:system/etc/audio_policy_configuration.xml \
49 frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:system/etc/primary_audio_policy_configuration.xml \
SzuWei Lin6fdff232017-06-06 16:54:57 +080050 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:system/etc/r_submix_audio_policy_configuration.xml \
51 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:system/etc/audio_policy_volumes.xml \
52 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:system/etc/default_volume_tables.xml \
SzuWei Linfe319172017-06-19 17:21:47 +080053
54# Bluetooth:
55# audio.a2dp.default is a system module. Generic system image includes
56# audio.a2dp.default to support A2DP if board has the capability.
57PRODUCT_PACKAGES += \
58 audio.a2dp.default
SzuWei Lin599fefa2017-07-12 16:56:43 +080059
60# Net:
61# Vendors can use the platform-provided network configuration utilities (ip,
62# iptable, etc.) to configure the Linux networking stack, but these utilities
63# do not yet include a HIDL interface wrapper. This is a solution on
64# Android O.
65PRODUCT_PACKAGES += \
66 netutils-wrapper-1.0
Bowgo Tsai9afc0d52017-07-27 21:22:14 +080067
SzuWei Linf786f032017-12-08 10:54:43 +080068# Telephony:
69# Provide a default APN configuration
70PRODUCT_COPY_FILES += \
71 device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml
72
Justin Yun74668432018-02-19 18:07:37 +090073# NFC:
74# Provide default libnfc-nci.conf file for devices that does not have one in
75# vendor/etc
76PRODUCT_COPY_FILES += \
77 device/generic/common/nfc/libnfc-nci.conf:system/etc/libnfc-nci.conf
78
Justin Yune3a7b1b2018-01-16 14:16:39 +090079# Support for the devices with no VNDK enforcing
Justin Yunfc951ff2017-12-19 18:39:10 +090080PRODUCT_COPY_FILES += \
Justin Yunfc951ff2017-12-19 18:39:10 +090081 build/make/target/product/vndk/init.gsi.rc:system/etc/init/init.gsi.rc \
82 build/make/target/product/vndk/init.noenforce.rc:system/etc/init/gsi/init.noenforce.rc
Justin Yunc1047642017-12-22 10:03:23 +090083
Justin Yune3a7b1b2018-01-16 14:16:39 +090084# Name space configuration file for non-enforcing VNDK
85PRODUCT_PACKAGES += \
86 ld.config.noenforce.txt
87
88# Set current VNDK version for GSI
Justin Yunc1047642017-12-22 10:03:23 +090089PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
90 ro.gsi.vndk.version=$(PLATFORM_VNDK_VERSION)