camera: add wrapper and build camera2 instead of snap
[GitHub/exynos8895/android_device_samsung_universal8895-common.git] / device-common.mk
CommitLineData
05950cfe
S
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
17LOCAL_PATH := device/samsung/universal8895-common
18
229aef17
JA
19DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
20
ea76535e
JA
21# Audio
22PRODUCT_PACKAGES += \
23 android.hardware.audio.common-util \
24 android.hardware.audio.common@2.0-util \
25 android.hardware.audio.common@2.0 \
26 android.hardware.audio.common@4.0-util \
27 android.hardware.audio.common@4.0 \
28 android.hardware.audio.effect@2.0 \
29 android.hardware.audio.effect@4.0 \
30 android.hardware.audio@2.0 \
31 android.hardware.audio@4.0 \
32 android.hardware.soundtrigger@2.0-core \
33 android.hardware.soundtrigger@2.0 \
34 android.hardware.soundtrigger@2.1 \
35 android.hardware.audio@2.0-service \
36 android.hardware.audio.effect@2.0-impl \
37 android.hardware.audio@2.0-impl \
38 android.hardware.soundtrigger@2.0-impl \
39 libalsautils \
40 libeffects \
41 libspeexresampler \
42 libaudioutils \
43 audio.a2dp.default \
44 libtinycompress
45
7d5f7c00 46PRODUCT_COPY_FILES += \
1ebdeebb 47 $(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
7d5f7c00
BM
48 frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
49 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
50 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
51
4078e19b
BM
52# Additional native libraries
53PRODUCT_COPY_FILES += \
54 $(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
55
05950cfe
S
56# Boot animation
57TARGET_BOOTANIMATION_PRELOAD := true
58TARGET_BOOTANIMATION_TEXTURE_CACHE := true
59TARGET_SCREEN_HEIGHT := 2560
60TARGET_SCREEN_WIDTH := 1440
61
62# Graphics
63# Device uses high-density artwork where available
64PRODUCT_AAPT_CONFIG := xlarge
65PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
66# A list of dpis to select prebuilt apk, in precedence order.
67PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
62edf019 68
60683d9f
JA
69# Camera
70PRODUCT_PACKAGES += \
71 android.hardware.camera.provider@2.4-impl \
72 android.hardware.camera.provider@2.4-service \
73 android.hardware.camera.common@1.0 \
74 android.hardware.camera.device@1.0 \
75 android.hardware.camera.device@3.2 \
76 android.hardware.camera.device@3.3 \
77 android.hardware.camera.device@3.4 \
78 android.hardware.camera.provider@2.4 \
4ef776ee
P
79 camera.universal8895 \
80 Camera2
60683d9f 81
d34eb6ae
DJ
82# Camera configurations
83PRODUCT_COPY_FILES += \
84 $(LOCAL_PATH)/configs/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml
85
366e7988
S
86# Configstore
87PRODUCT_PACKAGES += \
88 android.hardware.configstore@1.0-impl \
89 android.hardware.configstore@1.0-service
90
eb5d378c
S
91# DRM
92PRODUCT_PACKAGES += \
93 android.hardware.drm@1.0 \
94 android.hardware.drm@1.1 \
95 libfwdlockengine \
96 libdrmclearkeyplugin \
97 android.hardware.drm@1.0-service \
34e6e4dc 98 android.hardware.drm@1.2-service.clearkey \
eb5d378c
S
99 android.hardware.drm@1.0-impl
100
2fc54c50
JA
101# Fingerprint
102PRODUCT_PACKAGES += \
103 android.hardware.biometrics.fingerprint@2.1-service.samsung
104
ec62acf7 105# Flat device tree for boot image
7aa64557 106PRODUCT_HOST_PACKAGES += \
ec62acf7
S
107 dtbhtoolExynos
108
bc18ee10
JA
109# Gatekeeper
110PRODUCT_PACKAGES += \
111 android.hardware.gatekeeper@1.0-service \
112 android.hardware.gatekeeper@1.0-impl
113
9c4a5d6f
S
114# Graphics
115PRODUCT_PACKAGES += \
116 android.hardware.graphics.allocator@2.0-impl \
117 android.hardware.graphics.allocator@2.0-service \
118 android.hardware.graphics.composer@2.2-service \
119 android.hardware.graphics.mapper@2.0-impl
120
69dc20bd 121# Health
122PRODUCT_PACKAGES += \
123 android.hardware.health@2.0-impl \
124 android.hardware.health@2.0-service
125
3814fcc7
JA
126# HIDL Manifest
127PRODUCT_COPY_FILES += \
128 $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
129
d9d136df
CO
130# HotwordEnrollement app permissions
131PRODUCT_COPY_FILES += \
132 $(LOCAL_PATH)/configs/privapp-permissions-hotword.xml:system/etc/permissions/privapp-permissions-hotword.xml
133
749785c2
JA
134# Keylayout
135PRODUCT_COPY_FILES += \
136 $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl
137
5ddcc56c
JA
138# keymaster
139PRODUCT_PACKAGES += \
140 android.hardware.keymaster@3.0 \
141 android.hardware.keymaster@3.0-service \
142 android.hardware.keymaster@3.0-impl \
143 libkeymaster3device
144
f2ccad4e
S
145# Lights
146PRODUCT_PACKAGES += \
147 android.hardware.light@2.0-service.samsung
148
0a3d074e
PK
149# Livedisplay
150PRODUCT_PACKAGES += \
151 vendor.lineage.livedisplay@2.0-service.universal8895
152
f214474b
JA
153# LPM
154PRODUCT_PACKAGES += \
155 libsuspend
156
910bd2a2
S
157# Media
158PRODUCT_COPY_FILES += \
159 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
160 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
161 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml
162
922e2dee
S
163# Memory
164PRODUCT_PACKAGES += \
165 android.hardware.memtrack@1.0-impl
166
ea03bfd7
JA
167# NFC
168PRODUCT_PACKAGES += \
169 libnfc-nci \
170 libnfc_nci_jni \
171 NfcNci \
172 Tag \
044afc2d
JA
173 com.android.nfc_extras \
174 libclang_rt.ubsan_standalone-aarch64-android
ea03bfd7 175
38960fa6
S
176# Power
177PRODUCT_PACKAGES += \
11910563 178 android.hardware.power@1.0-service.exynos
38960fa6 179
5f2f10ef
S
180# Permissions
181PRODUCT_COPY_FILES += \
182 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
183 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
184 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
185 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
186 frameworks/native/data/etc/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml \
187 frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \
188 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
189 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
190 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
191 frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \
192 frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \
193 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
194 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
195 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
196 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
197 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
198 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
199 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
200 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
201 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
202 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
203 frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \
204 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
205 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
206 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
207 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \
208 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
209 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
210 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
211 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
212 frameworks/native/data/etc/android.hardware.vr.high_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vr.high_performance.xml \
213 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
214 frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
215 frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
216 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
217 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
218 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
219 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
220 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
221
81d816ee
S
222# ramdisk
223PRODUCT_PACKAGES += \
224 fstab.samsungexynos8895 \
225 init.baseband.rc \
226 init.samsung.rc \
227 init.samsungexynos8895.rc \
228 init.samsungexynos8895.usb.rc \
442e53dd 229 mobicore.rc \
81d816ee
S
230 ueventd.samsungexynos8895.rc
231
6d867633
S
232# RenderScript
233PRODUCT_PACKAGES += \
234 android.hardware.renderscript@1.0-impl
235
ca036104
JA
236# RIL
237PRODUCT_PACKAGES += \
2d56ee04
JA
238 android.hardware.radio.config@1.0 \
239 android.hardware.radio.config@1.1 \
240 android.hardware.radio.config@1.2 \
ca036104 241 android.hardware.radio@1.2 \
2d56ee04
JA
242 android.hardware.radio@1.3 \
243 android.hardware.radio@1.4 \
ca036104
JA
244 libxml2
245
df65ca3c 246# SamsungDoze
247PRODUCT_PACKAGES += \
248 SamsungDoze
249
1d7ea568
S
250# Seccomp filters
251PRODUCT_COPY_FILES += \
252 $(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \
253 $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
254
78b1ab99
S
255# Sensors
256PRODUCT_PACKAGES += \
257 android.hardware.sensors@1.0 \
258 android.hardware.sensors@1.0-impl \
259 android.hardware.sensors@1.0-service
260
2ada80ea
MB
261# Setup dalvik vm configs
262$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
263
d0d0e717
JA
264# Shims
265PRODUCT_PACKAGES += \
266 libexynoscamera_shim
267
2059d095
JA
268# stagefright
269PRODUCT_PACKAGES += \
270 libgui_vendor
271
12104b98
JA
272# s-pen
273PRODUCT_COPY_FILES += \
274 $(LOCAL_PATH)/configs/samsung-sec_e-pen.idc:system/usr/idc/sec_e-pen.idc
275
1ed68c09
S
276# TextClassifier
277PRODUCT_PACKAGES += \
278 textclassifier.bundle1
279
2cd7dc36
J
280# Trust HAL
281PRODUCT_PACKAGES += \
282 vendor.lineage.trust@1.0-service
283
67ec9d92
S
284# USB
285PRODUCT_PACKAGES += \
286 android.hardware.usb@1.0-service.basic
287
53e26c3c
JA
288# Vendor security patch level
289PRODUCT_PROPERTY_OVERRIDES += \
347abee3 290 ro.lineage.build.vendor_security_patch=2020-04-01
53e26c3c 291
cd64c7ef
JC
292# Vibrator
293PRODUCT_PACKAGES += \
83e3f55b 294 android.hardware.vibrator@1.0-service.samsung-haptic
cd64c7ef 295
73c56a02
S
296# Wifi
297PRODUCT_PACKAGES += \
298 macloader \
299 wifiloader \
300 hostapd \
301 wificond \
302 wifilogd \
303 wlutil \
304 libwpa_client \
305 wpa_supplicant \
306 wpa_supplicant.conf \
307 android.hardware.wifi@1.0-service \
308 android.hardware.wifi@1.0 \
309 android.hardware.wifi@1.0-impl
310
317ce1f2
S
311# Properties
312-include $(LOCAL_PATH)/system_prop.mk
313
6b53117f
MB
314# Apex
315$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
316
62edf019
S
317# call the proprietary setup
318$(call inherit-product, vendor/samsung/universal8895-common/universal8895-common-vendor.mk)