2 # Copyright (C) 2020 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 COMMON_PATH
:= device
/motorola
/exynos9610-common
19 $(call inherit-product
, $(SRC_TARGET_DIR
)/product
/product_launched_with_p.mk
)
21 # Get non-open-source specific aspects
22 $(call inherit-product-if-exists
, vendor
/motorola
/exynos9610-common
/exynos9610-common-vendor.mk
)
24 DEVICE_PACKAGE_OVERLAYS
+= $(COMMON_PATH
)/overlay
26 # RRO (Runtime Resource Overlay)
27 PRODUCT_ENFORCE_RRO_TARGETS
+= *
28 PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS
+= \
29 $(COMMON_PATH
)/overlay
/lineage-sdk
32 AB_OTA_UPDATER
:= true
34 AB_OTA_PARTITIONS
+= \
41 AB_OTA_POSTINSTALL_CONFIG
+= \
42 RUN_POSTINSTALL_system
=true \
43 POSTINSTALL_PATH_system
=system
/bin
/otapreopt_script \
44 FILESYSTEM_TYPE_system
=ext4 \
45 POSTINSTALL_OPTIONAL_system
=true
50 android.hardware.audio.effect@
4.0-impl \
51 android.hardware.audio@
2.0-service \
52 android.hardware.audio@
4.0-impl \
53 android.hardware.soundtrigger@
2.0-impl \
54 audio.r_submix.default \
60 PRODUCT_COPY_FILES
+= \
61 frameworks
/av
/services
/audiopolicy
/config
/a2dp_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/a2dp_audio_policy_configuration.xml \
62 $(COMMON_PATH
)/configs
/audio
/aov_ec_mixer_paths.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/aov_ec_mixer_paths.xml \
63 $(COMMON_PATH
)/configs
/audio
/audio_effects.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_effects.xml \
64 $(COMMON_PATH
)/configs
/audio
/audio_ext_spkr.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_ext_spkr.conf \
65 $(COMMON_PATH
)/configs
/audio
/audio_platform_info.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_platform_info.xml \
66 $(COMMON_PATH
)/configs
/audio
/audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_policy_configuration.xml \
67 $(COMMON_PATH
)/configs
/audio
/audio_policy_volumes.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_policy_volumes.xml \
68 $(COMMON_PATH
)/configs
/audio
/mixer_paths.retin.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/mixer_paths.retin.xml \
69 $(COMMON_PATH
)/configs
/audio
/mixer_paths.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/mixer_paths.xml \
70 frameworks
/av
/services
/audiopolicy
/config
/default_volume_tables.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/default_volume_tables.xml \
71 frameworks
/av
/services
/audiopolicy
/config
/r_submix_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/r_submix_audio_policy_configuration.xml \
72 frameworks
/av
/services
/audiopolicy
/config
/usb_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/usb_audio_policy_configuration.xml
77 update_engine_sideload \
84 PRODUCT_COPY_FILES
+= \
85 hardware
/samsung_slsi
/libbt
/conf
/bt_did.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/bluetooth
/bt_did.conf
88 android.hardware.bluetooth@
1.0-impl \
89 android.hardware.bluetooth@
1.0-service \
93 TARGET_BOOTANIMATION_PRELOAD
:= true
94 TARGET_BOOTANIMATION_TEXTURE_CACHE
:= true
95 TARGET_SCREEN_HEIGHT
:= 2520
96 TARGET_SCREEN_WIDTH
:= 1080
100 android.hardware.boot@
1.0 \
101 android.hardware.boot@
1.0-service \
102 android.hardware.boot@
1.0-impl.exynos9610 \
103 android.hardware.boot@
1.0-impl.exynos9610.recovery
106 PRODUCT_PACKAGES
+= \
107 android.hardware.camera.provider@
2.4-impl \
108 android.hardware.camera.provider@
2.4-service \
112 PRODUCT_PACKAGES
+= \
113 android.hardware.configstore@
1.1-service
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.drm@
1.0-impl \
126 android.hardware.drm@
1.0-service \
127 android.hardware.drm@
1.2-service.clearkey
129 # Fingerprint Gestures
130 PRODUCT_COPY_FILES
+= \
131 $(COMMON_PATH
)/configs
/keylayout
/uinput-egis.kl
:$(TARGET_COPY_OUT_VENDOR
)/usr
/keylayout
/uinput-egis.kl \
132 $(COMMON_PATH
)/configs
/idc
/uinput-egis.idc
:$(TARGET_COPY_OUT_VENDOR
)/usr
/idc
/uinput-egis.idc
135 PRODUCT_PACKAGES
+= \
140 PRODUCT_PACKAGES
+= \
141 android.hardware.gatekeeper@
1.0-impl \
142 android.hardware.gatekeeper@
1.0-service
145 PRODUCT_COPY_FILES
+= \
146 $(COMMON_PATH
)/configs
/gps
/gps.cfg
:$(TARGET_COPY_OUT_VENDOR
)/etc
/gnss
/gps.cfg
150 # Device uses high-density artwork where available
151 PRODUCT_AAPT_CONFIG
:= xlarge
152 PRODUCT_AAPT_PREF_CONFIG
:= xxxhdpi
153 # A list of dpis to select prebuilt apk, in precedence order.
154 PRODUCT_AAPT_PREBUILT_DPI
:= xxxhdpi xxhdpi xhdpi hdpi
157 PRODUCT_PACKAGES
+= \
158 android.hardware.health@
2.0-service
161 PRODUCT_COPY_FILES
+= \
162 $(COMMON_PATH
)/configs
/privapp-permissions-hotword.xml
:system
/etc
/permissions
/privapp-permissions-hotword.xml
165 PRODUCT_COPY_FILES
+= \
166 $(COMMON_PATH
)/configs
/init
/carrier
/init.default.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/carrier
/init.default.rc \
167 $(COMMON_PATH
)/configs
/init
/carrier
/init.retin.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/carrier
/init.retin.rc \
168 $(COMMON_PATH
)/configs
/init
/hw
/init.mmi.overlay.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.mmi.overlay.rc \
169 $(COMMON_PATH
)/configs
/init
/init.ets.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.ets.rc \
170 $(COMMON_PATH
)/configs
/init
/init.exynos.sensorhub.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.exynos.sensorhub.rc \
171 $(COMMON_PATH
)/configs
/init
/init.exynos9610.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.exynos9610.rc \
172 $(COMMON_PATH
)/configs
/init
/init.exynos9610.usb.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.exynos9610.usb.rc \
173 $(COMMON_PATH
)/configs
/init
/init.mmi.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.mmi.rc \
174 $(COMMON_PATH
)/configs
/init
/init.nfc.sec.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.nfc.sec.rc \
175 $(COMMON_PATH
)/configs
/init
/init.recovery.exynos9610.rc
:$(TARGET_COPY_OUT_ROOT
)/init.recovery.exynos9610.rc \
176 $(COMMON_PATH
)/configs
/init
/mobicore.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/mobicore.rc \
177 $(COMMON_PATH
)/configs
/init
/rild.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/rild.rc \
178 $(COMMON_PATH
)/configs
/init
/ueventd.rc
:$(TARGET_COPY_OUT_VENDOR
)/ueventd.rc \
179 $(COMMON_PATH
)/configs
/init
/vendor.mmi.carrier.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/vendor.mmi.carrier.rc \
180 $(COMMON_PATH
)/configs
/fstab.exynos9610
:$(TARGET_COPY_OUT_VENDOR
)/etc
/fstab.exynos9610
183 PRODUCT_PACKAGES
+= \
184 android.hardware.keymaster@
3.0-impl \
185 android.hardware.keymaster@
3.0-service
188 PRODUCT_PACKAGES
+= \
189 android.hardware.light@
2.0-service.exynos9610
192 PRODUCT_PACKAGES
+= \
196 PRODUCT_COPY_FILES
+= \
197 $(COMMON_PATH
)/configs
/media
/media_codecs.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs.xml \
198 $(COMMON_PATH
)/configs
/media
/media_codecs_dolby_audio.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_dolby_audio.xml \
199 $(COMMON_PATH
)/configs
/media
/media_codecs_google_audio.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_google_audio.xml \
200 $(COMMON_PATH
)/configs
/media
/media_codecs_google_telephony.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_google_telephony.xml \
201 $(COMMON_PATH
)/configs
/media
/media_codecs_google_video.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_google_video.xml \
202 $(COMMON_PATH
)/configs
/media
/media_codecs_performance.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_performance.xml \
203 $(COMMON_PATH
)/configs
/media
/media_profiles_V1_0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles_V1_0.xml \
204 $(COMMON_PATH
)/configs
/media
/media_profiles_vendor.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles_vendor.xml \
205 $(COMMON_PATH
)/configs
/media
/media_profiles_vendor_V1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles_vendor_V1.xml
208 PRODUCT_PACKAGES
+= \
209 android.hardware.memtrack@
1.0-impl \
210 android.hardware.memtrack@
1.0-service
213 PRODUCT_PACKAGES
+= \
217 com.android.nfc_extras \
218 android.hardware.nfc@
1.0 \
219 android.hardware.nfc@
1.1 \
220 android.hardware.nfc@
1.2
222 PRODUCT_COPY_FILES
+= \
223 $(COMMON_PATH
)/configs
/nfc
/libnfc-nci.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/libnfc-nci.conf \
224 $(COMMON_PATH
)/configs
/nfc
/libnfc-sec-vendor.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/libnfc-sec-vendor.conf
227 PRODUCT_PACKAGES
+= \
228 android.hardware.neuralnetworks@
1.2-service-sample-all
231 PRODUCT_PACKAGES
+= \
232 android.hardware.media.omx@
1.0-service \
233 libstagefright_softomx
236 PRODUCT_COPY_FILES
+= \
237 frameworks
/native
/data
/etc
/android.hardware.audio.low_latency.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.audio.low_latency.xml \
238 frameworks
/native
/data
/etc
/android.hardware.biometrics.face.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.biometrics.face.xml \
239 frameworks
/native
/data
/etc
/android.hardware.bluetooth.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.bluetooth.xml \
240 frameworks
/native
/data
/etc
/android.hardware.bluetooth_le.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.bluetooth_le.xml \
241 frameworks
/native
/data
/etc
/android.hardware.camera.flash-autofocus.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.flash-autofocus.xml \
242 frameworks
/native
/data
/etc
/android.hardware.camera.front.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.front.xml \
243 frameworks
/native
/data
/etc
/android.hardware.camera.full.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.full.xml \
244 frameworks
/native
/data
/etc
/android.hardware.camera.raw.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.raw.xml \
245 frameworks
/native
/data
/etc
/android.hardware.camera.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.xml \
246 frameworks
/native
/data
/etc
/android.hardware.fingerprint.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.fingerprint.xml \
247 frameworks
/native
/data
/etc
/android.hardware.location.gps.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.location.gps.xml \
248 frameworks
/native
/data
/etc
/android.hardware.opengles.aep.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.opengles.aep.xml \
249 frameworks
/native
/data
/etc
/android.hardware.sensor.accelerometer.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.accelerometer.xml \
250 frameworks
/native
/data
/etc
/android.hardware.sensor.compass.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.compass.xml \
251 frameworks
/native
/data
/etc
/android.hardware.sensor.gyroscope.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.gyroscope.xml \
252 frameworks
/native
/data
/etc
/android.hardware.sensor.light.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.light.xml \
253 frameworks
/native
/data
/etc
/android.hardware.sensor.proximity.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.proximity.xml \
254 frameworks
/native
/data
/etc
/android.hardware.sensor.stepcounter.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.stepcounter.xml \
255 frameworks
/native
/data
/etc
/android.hardware.sensor.stepdetector.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.stepdetector.xml \
256 frameworks
/native
/data
/etc
/android.hardware.telephony.cdma.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.telephony.cdma.xml \
257 frameworks
/native
/data
/etc
/android.hardware.telephony.gsm.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.telephony.gsm.xml \
258 frameworks
/native
/data
/etc
/android.hardware.touchscreen.multitouch.jazzhand.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.touchscreen.multitouch.jazzhand.xml \
259 frameworks
/native
/data
/etc
/android.hardware.usb.accessory.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.usb.accessory.xml \
260 frameworks
/native
/data
/etc
/android.hardware.usb.host.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.usb.host.xml \
261 frameworks
/native
/data
/etc
/android.hardware.vulkan.compute-0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.compute.xml \
262 frameworks
/native
/data
/etc
/android.hardware.vulkan.level-1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.level.xml \
263 frameworks
/native
/data
/etc
/android.hardware.vulkan.version-1_1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.version.xml \
264 frameworks
/native
/data
/etc
/android.hardware.wifi.aware.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.aware.xml \
265 frameworks
/native
/data
/etc
/android.hardware.wifi.direct.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.direct.xml \
266 frameworks
/native
/data
/etc
/android.hardware.wifi.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.xml \
267 frameworks
/native
/data
/etc
/android.software.midi.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.midi.xml \
268 frameworks
/native
/data
/etc
/handheld_core_hardware.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/handheld_core_hardware.xml
270 PRODUCT_COPY_FILES
+= \
271 frameworks
/native
/data
/etc
/android.hardware.telephony.ims.xml
:system
/etc
/permissions
/android.hardware.telephony.ims.xml \
272 frameworks
/native
/data
/etc
/android.hardware.nfc.xml
:system
/etc
/permissions
/android.hardware.nfc.xml \
273 frameworks
/native
/data
/etc
/android.hardware.nfc.hce.xml
:system
/etc
/permissions
/android.hardware.nfc.hce.xml \
274 frameworks
/native
/data
/etc
/android.hardware.nfc.hce.xml
:system
/etc
/permissions
/android.hardware.nfc.hcef.xml
277 PRODUCT_PACKAGES
+= \
278 android.hardware.power@
1.0-impl \
279 android.hardware.power@
1.0-service
282 PRODUCT_COPY_FILES
+= \
283 $(COMMON_PATH
)/configs
/public.libraries.txt
:$(TARGET_COPY_OUT_VENDOR
)/etc
/public.libraries.txt
285 # Remove unwanted packages
286 PRODUCT_PACKAGES
+= \
290 PRODUCT_PACKAGES
+= \
291 android.hardware.radio.config@
1.0 \
292 android.hardware.radio.config@
1.1 \
293 android.hardware.radio.config@
1.2 \
294 android.hardware.radio@
1.0 \
295 android.hardware.radio@
1.1 \
296 android.hardware.radio@
1.2 \
297 android.hardware.radio@
1.3 \
298 android.hardware.radio@
1.4 \
299 android.hardware.radio.deprecated@
1.0 \
303 PRODUCT_PACKAGES
+= \
304 android.hardware.renderscript@
1.0-impl
307 PRODUCT_COPY_FILES
+= \
308 $(COMMON_PATH
)/configs
/seccomp
/mediacodec.policy
:$(TARGET_COPY_OUT_VENDOR
)/etc
/seccomp_policy
/mediacodec.policy
311 PRODUCT_PACKAGES
+= \
312 android.hardware.sensors@
1.0-impl \
313 android.hardware.sensors@
1.0-service
315 PRODUCT_COPY_FILES
+= \
316 $(COMMON_PATH
)/configs
/sensors
/hals.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/sensors
/hals.conf \
317 $(COMMON_PATH
)/configs
/sensors
/mot_sensor_settings.json
:$(TARGET_COPY_OUT_VENDOR
)/etc
/sensors
/mot_sensor_settings.json
320 PRODUCT_PACKAGES
+= \
324 PRODUCT_PACKAGES
+= \
325 android.hardware.thermal@
1.0-impl \
326 android.hardware.thermal@
1.0-service \
328 PRODUCT_COPY_FILES
+= \
329 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal.conf \
330 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal.env
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal.env \
331 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal-kane.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal-kane.conf \
332 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal-kane-retin.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal-kane-retin.conf \
333 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal-troika.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal-troika.conf
336 PRODUCT_PACKAGES
+= \
337 vendor.lineage.trust@
1.0-service
340 PRODUCT_PACKAGES
+= \
341 android.hardware.usb@
1.1-service.exynos9610
344 PRODUCT_PACKAGES
+= \
345 android.hardware.vibrator@
1.0-service.exynos9610
348 PRODUCT_PACKAGES
+= \
349 android.hardware.wifi@
1.0-service \
354 PRODUCT_COPY_FILES
+= \
355 $(COMMON_PATH
)/configs
/wifi
/p2p_supplicant_overlay.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/wifi
/p2p_supplicant_overlay.conf \
356 $(COMMON_PATH
)/configs
/wifi
/wpa_supplicant.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/wifi
/wpa_supplicant.conf \
357 $(COMMON_PATH
)/configs
/wifi
/wpa_supplicant_overlay.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/wifi
/wpa_supplicant_overlay.conf