universal7580: Decommonise the audio effects configuration
[GitHub/LineageOS/android_device_samsung_universal7580-common.git] / device-common.mk
1 #
2 # Copyright (C) 2018 The LineageOS 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 LOCAL_PATH := device/samsung/universal7580-common
18
19 DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
20
21 # Audio
22 PRODUCT_PACKAGES += \
23 audio.primary.universal7580 \
24 audio.a2dp.default \
25 audio.r_submix.default \
26 audio.usb.default \
27 tinymix \
28 android.hardware.audio@2.0-impl \
29 android.hardware.audio.effect@2.0-impl
30
31 PRODUCT_COPY_FILES += \
32 $(LOCAL_PATH)/configs/audio/audio_policy.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/audio_policy.conf \
33 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
34 frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
35 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
36 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
37 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
38 $(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
39
40 # Bluetooth
41 PRODUCT_PACKAGES += \
42 android.hardware.bluetooth@1.0-impl.7580 \
43 libbt-vendor
44
45 # Camera
46 PRODUCT_PACKAGES += \
47 android.hardware.camera.provider@2.4-impl-legacy \
48 android.hardware.camera.provider@2.4-service
49
50 # Configstore
51 PRODUCT_PACKAGES += \
52 android.hardware.configstore@1.0-impl \
53 android.hardware.configstore@1.0-service
54
55 # DRM
56 PRODUCT_PACKAGES += \
57 android.hardware.drm@1.0-impl \
58 android.hardware.drm@1.0-service
59
60 # Flat device tree for boot image
61 PRODUCT_HOST_PACKAGES += \
62 dtbhtoolExynos
63
64 # GPS
65 PRODUCT_PACKAGES += \
66 android.hardware.gnss@1.0-impl
67
68 PRODUCT_COPY_FILES += \
69 $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \
70 $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml
71
72 # Graphics
73 PRODUCT_PACKAGES += \
74 libion \
75 libfimg \
76 android.hardware.graphics.allocator@2.0-impl \
77 android.hardware.graphics.allocator@2.0-service \
78 android.hardware.graphics.composer@2.1-service \
79 android.hardware.graphics.mapper@2.0-impl \
80 libhwc2on1adapter
81
82 # Health
83 PRODUCT_PACKAGES += \
84 android.hardware.health@2.0-impl \
85 android.hardware.health@2.0-service
86
87 # Gatekeeper
88 PRODUCT_PACKAGES += \
89 android.hardware.gatekeeper@1.0-service.software
90
91 # Keymaster
92 PRODUCT_PACKAGES += \
93 keystore.exynos5 \
94 android.hardware.keymaster@3.0-impl \
95 android.hardware.keymaster@3.0-service
96
97 # Lights
98 PRODUCT_PACKAGES += \
99 android.hardware.light@2.0-service.samsung
100
101 # Livedisplay
102 PRODUCT_PACKAGES += \
103 vendor.lineage.livedisplay@2.0-service.samsung-exynos
104
105 # Media
106 PRODUCT_COPY_FILES += \
107 $(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
108 $(LOCAL_PATH)/configs/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
109 $(LOCAL_PATH)/configs/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
110 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
111 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
112 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml
113
114 # Memory
115 PRODUCT_PACKAGES += \
116 android.hardware.memtrack@1.0-impl
117
118 # Mobicore
119 PRODUCT_PACKAGES += \
120 mcDriverDaemon \
121 libMcClient \
122 libMcRegistry
123
124 # Power
125 PRODUCT_PACKAGES += \
126 android.hardware.power@1.0-service.exynos
127
128 # Permissions
129 PRODUCT_COPY_FILES += \
130 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
131 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
132 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
133 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
134 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
135 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
136 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml
137
138 # ramdisk
139 PRODUCT_PACKAGES += \
140 init.power.rc \
141 fstab.samsungexynos7580 \
142 init.baseband.rc \
143 init.samsung.rc \
144 init.samsungexynos7580.rc \
145 init.samsungexynos7580.usb.rc \
146 init.recovery.samsungexynos7580.rc \
147 init.wifi.rc \
148 ueventd.samsungexynos7580.rc
149
150 # RenderScript
151 PRODUCT_PACKAGES += \
152 android.hardware.renderscript@1.0-impl
153
154 # SamsungDoze
155 PRODUCT_PACKAGES += \
156 SamsungDoze
157
158 # SEC
159 PRODUCT_PACKAGES += \
160 libsecnativefeature
161
162 # Seccomp filters
163 PRODUCT_COPY_FILES += \
164 $(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \
165 $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
166
167 # Sensors
168 PRODUCT_PACKAGES += \
169 android.hardware.sensors@1.0-impl \
170 android.hardware.vibrator@1.0-impl \
171 android.hardware.vibrator@1.0-service
172
173 # Shims
174 PRODUCT_PACKAGES += \
175 libcamera_client_shim \
176 libexynoscamera_shim \
177 libstagefright_shim \
178 libui_shim \
179 libcutils_shim
180
181 # TextClassifier
182 PRODUCT_PACKAGES += \
183 textclassifier.bundle1
184
185 # Touch features
186 PRODUCT_PACKAGES += \
187 vendor.lineage.touch@1.0-service.samsung
188
189 # Trust HAL
190 PRODUCT_PACKAGES += \
191 vendor.lineage.trust@1.0-service
192
193 # USB
194 PRODUCT_PACKAGES += \
195 android.hardware.usb@1.0-service.basic
196
197 # Wifi
198 PRODUCT_PACKAGES += \
199 wifiloader \
200 hostapd \
201 wificond \
202 wifilogd \
203 wlutil \
204 libwpa_client \
205 wpa_supplicant \
206 wpa_supplicant.conf \
207 android.hardware.wifi@1.0-service.legacy
208
209 # Properties
210 -include $(LOCAL_PATH)/system_prop.mk
211
212 # call Samsung LSI board support package
213 $(call inherit-product, hardware/samsung_slsi/exynos5/exynos5.mk)
214 $(call inherit-product, hardware/samsung_slsi/exynos7580/exynos7580.mk)
215
216 # call the proprietary setup
217 $(call inherit-product, vendor/samsung/universal7580-common/universal7580-common-vendor.mk)