universal8895: add vibrator HAL for SEC Haptic Engine
[GitHub/exynos8895/android_device_samsung_universal8895-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/universal8895-common
18
19 DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
20
21 # Audio
22 PRODUCT_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
46 # Boot animation
47 TARGET_BOOTANIMATION_PRELOAD := true
48 TARGET_BOOTANIMATION_TEXTURE_CACHE := true
49 TARGET_SCREEN_HEIGHT := 2560
50 TARGET_SCREEN_WIDTH := 1440
51
52 # Graphics
53 # Device uses high-density artwork where available
54 PRODUCT_AAPT_CONFIG := xlarge
55 PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
56 # A list of dpis to select prebuilt apk, in precedence order.
57 PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
58
59 # Camera
60 PRODUCT_PACKAGES += \
61 android.hardware.camera.provider@2.4-impl \
62 android.hardware.camera.provider@2.4-service \
63 android.hardware.camera.common@1.0 \
64 android.hardware.camera.device@1.0 \
65 android.hardware.camera.device@3.2 \
66 android.hardware.camera.device@3.3 \
67 android.hardware.camera.device@3.4 \
68 android.hardware.camera.provider@2.4 \
69 Snap
70
71 # Camera configurations
72 PRODUCT_COPY_FILES += \
73 $(LOCAL_PATH)/configs/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml
74
75 # Configstore
76 PRODUCT_PACKAGES += \
77 android.hardware.configstore@1.0-impl \
78 android.hardware.configstore@1.0-service
79
80 # DRM
81 PRODUCT_PACKAGES += \
82 android.hardware.drm@1.0 \
83 android.hardware.drm@1.1 \
84 libfwdlockengine \
85 libdrmclearkeyplugin \
86 android.hardware.drm@1.0-service \
87 android.hardware.drm@1.1-service.clearkey \
88 android.hardware.drm@1.0-impl
89
90 # Flat device tree for boot image
91 PRODUCT_PACKAGES += \
92 dtbhtoolExynos
93
94 # Gatekeeper
95 PRODUCT_PACKAGES += \
96 android.hardware.gatekeeper@1.0-service \
97 android.hardware.gatekeeper@1.0-impl
98
99 # Graphics
100 PRODUCT_PACKAGES += \
101 android.hardware.graphics.allocator@2.0-impl \
102 android.hardware.graphics.allocator@2.0-service \
103 android.hardware.graphics.composer@2.2-service \
104 android.hardware.graphics.mapper@2.0-impl
105
106 # Health
107 PRODUCT_PACKAGES += \
108 android.hardware.health@2.0-impl \
109 android.hardware.health@2.0-service
110
111 # Lights
112 PRODUCT_PACKAGES += \
113 android.hardware.light@2.0-service.samsung
114
115 # Media
116 PRODUCT_COPY_FILES += \
117 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
118 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
119 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml
120
121 # Memory
122 PRODUCT_PACKAGES += \
123 android.hardware.memtrack@1.0-impl
124
125 # NFC
126 PRODUCT_PACKAGES += \
127 libnfc-nci \
128 libnfc_nci_jni \
129 NfcNci \
130 Tag \
131 com.android.nfc_extras
132
133 # Power
134 PRODUCT_PACKAGES += \
135 power.universal8895 \
136 android.hardware.power@1.0-service \
137 android.hardware.power@1.0-impl
138
139 # Permissions
140 PRODUCT_COPY_FILES += \
141 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
142 frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
143 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
144 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
145 frameworks/native/data/etc/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.ar.xml \
146 frameworks/native/data/etc/android.hardware.camera.autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.autofocus.xml \
147 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
148 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
149 frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
150 frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \
151 frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \
152 frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
153 frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
154 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
155 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
156 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
157 frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
158 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
159 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
160 frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
161 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
162 frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \
163 frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
164 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
165 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
166 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \
167 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
168 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
169 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
170 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
171 frameworks/native/data/etc/android.hardware.vr.high_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vr.high_performance.xml \
172 frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
173 frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
174 frameworks/native/data/etc/android.hardware.vulkan.version-1_0_3.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml \
175 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
176 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
177 frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
178 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
179 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
180
181 # ramdisk
182 PRODUCT_PACKAGES += \
183 fstab.samsungexynos8895 \
184 init.baseband.rc \
185 init.samsung.rc \
186 init.samsungexynos8895.rc \
187 init.samsungexynos8895.usb.rc \
188 ueventd.samsungexynos8895.rc
189
190 # RenderScript
191 PRODUCT_PACKAGES += \
192 android.hardware.renderscript@1.0-impl
193
194 # RIL
195 PRODUCT_PACKAGES += \
196 android.hardware.radio@1.2 \
197 libxml2
198
199 # SamsungDoze
200 PRODUCT_PACKAGES += \
201 SamsungDoze
202
203 # Seccomp filters
204 PRODUCT_COPY_FILES += \
205 $(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \
206 $(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
207
208 # Sensors
209 PRODUCT_PACKAGES += \
210 android.hardware.sensors@1.0 \
211 android.hardware.sensors@1.0-impl \
212 android.hardware.sensors@1.0-service
213
214 # Shims
215 PRODUCT_PACKAGES += \
216 libexynoscamera_shim
217
218 # TextClassifier
219 PRODUCT_PACKAGES += \
220 textclassifier.bundle1
221
222 # Trust HAL
223 PRODUCT_PACKAGES += \
224 vendor.lineage.trust@1.0-service
225
226 # USB
227 PRODUCT_PACKAGES += \
228 android.hardware.usb@1.0-service.basic
229
230 # Vibrator
231 PRODUCT_PACKAGES += \
232 android.hardware.vibrator@1.0-service.universal8895
233
234 # Wifi
235 PRODUCT_PACKAGES += \
236 macloader \
237 wifiloader \
238 hostapd \
239 wificond \
240 wifilogd \
241 wlutil \
242 libwpa_client \
243 wpa_supplicant \
244 wpa_supplicant.conf \
245 android.hardware.wifi@1.0-service \
246 android.hardware.wifi@1.0 \
247 android.hardware.wifi@1.0-impl
248
249 # Properties
250 -include $(LOCAL_PATH)/system_prop.mk
251
252 # call the proprietary setup
253 $(call inherit-product, vendor/samsung/universal8895-common/universal8895-common-vendor.mk)