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