2 # Copyright (C) 2018 The LineageOS Project
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
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 LOCAL_PATH
:= device
/samsung
/universal8895-common
20 $(call inherit-product
, $(SRC_TARGET_DIR
)/product
/product_launched_with_n.mk
)
22 DEVICE_PACKAGE_OVERLAYS
+= $(LOCAL_PATH
)/overlay
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 \
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
55 # Additional native libraries
56 PRODUCT_COPY_FILES
+= \
57 $(LOCAL_PATH
)/configs
/public.libraries.txt
:$(TARGET_COPY_OUT_VENDOR
)/etc
/public.libraries.txt
60 TARGET_BOOTANIMATION_PRELOAD
:= true
61 TARGET_BOOTANIMATION_TEXTURE_CACHE
:= true
62 TARGET_SCREEN_HEIGHT
:= 2560
63 TARGET_SCREEN_WIDTH
:= 1440
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
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 \
84 # Camera configurations
85 PRODUCT_COPY_FILES
+= \
86 $(LOCAL_PATH
)/configs
/external_camera_config.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/external_camera_config.xml
90 android.hardware.configstore@
1.0-impl \
91 android.hardware.configstore@
1.0-service
95 android.hardware.drm@
1.0 \
96 android.hardware.drm@
1.1 \
98 libdrmclearkeyplugin \
99 android.hardware.drm@
1.0-service \
100 android.hardware.drm@
1.3-service.clearkey \
101 android.hardware.drm@
1.0-impl
104 PRODUCT_PACKAGES
+= \
105 android.hardware.biometrics.fingerprint@
2.1-service.samsung
107 # Flat device tree for boot image
108 PRODUCT_HOST_PACKAGES
+= \
112 PRODUCT_PACKAGES
+= \
113 android.hardware.gatekeeper@
1.0-service \
114 android.hardware.gatekeeper@
1.0-impl
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
124 PRODUCT_PACKAGES
+= \
125 android.hardware.health@
2.0-impl \
126 android.hardware.health@
2.0-service
128 # HotwordEnrollement app permissions
129 PRODUCT_COPY_FILES
+= \
130 $(LOCAL_PATH
)/configs
/privapp-permissions-hotword.xml
:system
/etc
/permissions
/privapp-permissions-hotword.xml
133 PRODUCT_COPY_FILES
+= \
134 $(LOCAL_PATH
)/keylayout
/gpio_keys.kl
:system
/usr
/keylayout
/gpio_keys.kl
137 PRODUCT_PACKAGES
+= \
138 android.hardware.keymaster@
3.0 \
139 android.hardware.keymaster@
3.0-service \
140 android.hardware.keymaster@
3.0-impl \
144 PRODUCT_PACKAGES
+= \
145 android.hardware.light@
2.0-service.samsung
148 PRODUCT_PACKAGES
+= \
149 vendor.lineage.livedisplay@
2.0-service.universal8895
152 PRODUCT_PACKAGES
+= \
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
162 PRODUCT_PACKAGES
+= \
163 android.hardware.memtrack@
1.0-impl
166 PRODUCT_PACKAGES
+= \
171 com.android.nfc_extras \
172 libclang_rt.ubsan_standalone-aarch64-android
175 PRODUCT_PACKAGES
+= \
176 android.hardware.power@
1.0-service.exynos
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
221 PRODUCT_PACKAGES
+= \
222 fstab.samsungexynos8895 \
225 init.samsungexynos8895.rc \
226 init.samsungexynos8895.usb.rc \
228 ueventd.samsungexynos8895.rc
231 PRODUCT_PACKAGES
+= \
232 android.hardware.renderscript@
1.0-impl
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 \
244 PRODUCT_COPY_FILES
+= \
245 $(LOCAL_PATH
)/ramdisk
/etc
/ril_config.sh
:$(TARGET_COPY_OUT_VENDOR
)/etc
/ril_config.sh
248 PRODUCT_PACKAGES
+= \
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
257 PRODUCT_PACKAGES
+= \
258 android.hardware.sensors@
1.0 \
259 android.hardware.sensors@
1.0-impl \
260 android.hardware.sensors@
1.0-service
262 # Setup dalvik vm configs
263 $(call inherit-product
, frameworks
/native
/build
/phone-xhdpi-4096-dalvik-heap.mk
)
266 PRODUCT_PACKAGES
+= \
267 libexynoscamera_shim \
272 PRODUCT_PACKAGES
+= \
276 PRODUCT_COPY_FILES
+= \
277 $(LOCAL_PATH
)/configs
/samsung-sec_e-pen.idc
:system
/usr
/idc
/sec_e-pen.idc
280 PRODUCT_PACKAGES
+= \
281 textclassifier.bundle1
284 PRODUCT_PACKAGES
+= \
285 vendor.lineage.trust@
1.0-service
288 PRODUCT_PACKAGES
+= \
289 android.hardware.usb@
1.0-service.basic
291 # Vendor security patch level
292 PRODUCT_PROPERTY_OVERRIDES
+= \
293 ro.lineage.build.vendor_security_patch
=2020-04-01
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
303 PRODUCT_PACKAGES
+= \
304 android.hardware.vibrator@
1.0-service.samsung-haptic
307 PRODUCT_PACKAGES
+= \
316 wpa_supplicant.conf \
317 android.hardware.wifi@
1.0-service \
318 android.hardware.wifi@
1.0 \
319 android.hardware.wifi@
1.0-impl
322 -include $(LOCAL_PATH
)/system_prop.mk
325 $(call inherit-product
, $(SRC_TARGET_DIR
)/product
/updatable_apex.mk
)
327 # call the proprietary setup
328 $(call inherit-product
, vendor
/samsung
/universal8895-common
/universal8895-common-vendor.mk
)