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
27 AB_OTA_UPDATER
:= true
29 AB_OTA_PARTITIONS
+= \
36 AB_OTA_POSTINSTALL_CONFIG
+= \
37 RUN_POSTINSTALL_system
=true \
38 POSTINSTALL_PATH_system
=system
/bin
/otapreopt_script \
39 FILESYSTEM_TYPE_system
=ext4 \
40 POSTINSTALL_OPTIONAL_system
=true
45 android.hardware.audio.effect@
4.0-impl \
46 android.hardware.audio@
2.0-service \
47 android.hardware.audio@
4.0-impl \
48 android.hardware.soundtrigger@
2.0-impl \
49 audio.r_submix.default \
55 PRODUCT_COPY_FILES
+= \
56 frameworks
/av
/services
/audiopolicy
/config
/a2dp_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/a2dp_audio_policy_configuration.xml \
57 $(COMMON_PATH
)/configs
/audio
/aov_ec_mixer_paths.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/aov_ec_mixer_paths.xml \
58 $(COMMON_PATH
)/configs
/audio
/audio_effects.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_effects.xml \
59 $(COMMON_PATH
)/configs
/audio
/audio_ext_spkr.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_ext_spkr.conf \
60 $(COMMON_PATH
)/configs
/audio
/audio_platform_info.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_platform_info.xml \
61 $(COMMON_PATH
)/configs
/audio
/audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_policy_configuration.xml \
62 $(COMMON_PATH
)/configs
/audio
/audio_policy_volumes.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/audio_policy_volumes.xml \
63 $(COMMON_PATH
)/configs
/audio
/mixer_paths.retin.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/mixer_paths.retin.xml \
64 $(COMMON_PATH
)/configs
/audio
/mixer_paths.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/mixer_paths.xml \
65 frameworks
/av
/services
/audiopolicy
/config
/default_volume_tables.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/default_volume_tables.xml \
66 frameworks
/av
/services
/audiopolicy
/config
/r_submix_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/r_submix_audio_policy_configuration.xml \
67 frameworks
/av
/services
/audiopolicy
/config
/usb_audio_policy_configuration.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/usb_audio_policy_configuration.xml
72 update_engine_sideload \
79 PRODUCT_COPY_FILES
+= \
80 hardware
/samsung_slsi
/libbt
/conf
/bt_did.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/bluetooth
/bt_did.conf
83 android.hardware.bluetooth@
1.0-impl \
84 android.hardware.bluetooth@
1.0-service \
88 TARGET_BOOTANIMATION_PRELOAD
:= true
89 TARGET_BOOTANIMATION_TEXTURE_CACHE
:= true
90 TARGET_SCREEN_HEIGHT
:= 2520
91 TARGET_SCREEN_WIDTH
:= 1080
95 android.hardware.boot@
1.0 \
96 android.hardware.boot@
1.0-service \
97 android.hardware.boot@
1.0-impl.exynos9610 \
98 android.hardware.boot@
1.0-impl.exynos9610.recovery
101 PRODUCT_PACKAGES
+= \
102 android.hardware.camera.provider@
2.4-impl \
103 android.hardware.camera.provider@
2.4-service \
107 PRODUCT_PACKAGES
+= \
108 android.hardware.configstore@
1.1-service
112 PRODUCT_PACKAGES
+= \
113 android.hardware.graphics.allocator@
2.0-impl \
114 android.hardware.graphics.allocator@
2.0-service \
115 android.hardware.graphics.composer@
2.2-service \
116 android.hardware.graphics.mapper@
2.0-impl \
119 PRODUCT_PACKAGES
+= \
120 android.hardware.drm@
1.0-impl \
121 android.hardware.drm@
1.0-service \
122 android.hardware.drm@
1.2-service.clearkey
124 # Fingerprint Gestures
125 PRODUCT_COPY_FILES
+= \
126 $(COMMON_PATH
)/configs
/keylayout
/uinput-egis.kl
:$(TARGET_COPY_OUT_VENDOR
)/usr
/keylayout
/uinput-egis.kl \
127 $(COMMON_PATH
)/configs
/idc
/uinput-egis.idc
:$(TARGET_COPY_OUT_VENDOR
)/usr
/idc
/uinput-egis.idc
130 PRODUCT_PACKAGES
+= \
135 PRODUCT_PACKAGES
+= \
136 android.hardware.gatekeeper@
1.0-impl \
137 android.hardware.gatekeeper@
1.0-service
140 PRODUCT_COPY_FILES
+= \
141 $(COMMON_PATH
)/configs
/gps
/gps.cfg
:$(TARGET_COPY_OUT_VENDOR
)/etc
/gnss
/gps.cfg
145 # Device uses high-density artwork where available
146 PRODUCT_AAPT_CONFIG
:= xlarge
147 PRODUCT_AAPT_PREF_CONFIG
:= xxxhdpi
148 # A list of dpis to select prebuilt apk, in precedence order.
149 PRODUCT_AAPT_PREBUILT_DPI
:= xxxhdpi xxhdpi xhdpi hdpi
152 PRODUCT_PACKAGES
+= \
153 android.hardware.health@
2.0-service
156 PRODUCT_COPY_FILES
+= \
157 $(COMMON_PATH
)/configs
/privapp-permissions-hotword.xml
:system
/etc
/permissions
/privapp-permissions-hotword.xml
160 PRODUCT_COPY_FILES
+= \
161 $(COMMON_PATH
)/configs
/init
/carrier
/init.default.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/carrier
/init.default.rc \
162 $(COMMON_PATH
)/configs
/init
/carrier
/init.retin.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/carrier
/init.retin.rc \
163 $(COMMON_PATH
)/configs
/init
/hw
/init.mmi.overlay.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.mmi.overlay.rc \
164 $(COMMON_PATH
)/configs
/init
/init.ets.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.ets.rc \
165 $(COMMON_PATH
)/configs
/init
/init.exynos.sensorhub.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.exynos.sensorhub.rc \
166 $(COMMON_PATH
)/configs
/init
/init.exynos9610.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.exynos9610.rc \
167 $(COMMON_PATH
)/configs
/init
/init.exynos9610.usb.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.exynos9610.usb.rc \
168 $(COMMON_PATH
)/configs
/init
/init.mmi.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.mmi.rc \
169 $(COMMON_PATH
)/configs
/init
/init.nfc.sec.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.nfc.sec.rc \
170 $(COMMON_PATH
)/configs
/init
/init.recovery.exynos9610.rc
:$(TARGET_COPY_OUT_ROOT
)/init.recovery.exynos9610.rc \
171 $(COMMON_PATH
)/configs
/init
/mobicore.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/mobicore.rc \
172 $(COMMON_PATH
)/configs
/init
/rild.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/rild.rc \
173 $(COMMON_PATH
)/configs
/init
/ueventd.rc
:$(TARGET_COPY_OUT_VENDOR
)/ueventd.rc \
174 $(COMMON_PATH
)/configs
/init
/vendor.mmi.carrier.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/vendor.mmi.carrier.rc \
175 $(COMMON_PATH
)/configs
/fstab.exynos9610
:$(TARGET_COPY_OUT_VENDOR
)/etc
/fstab.exynos9610
178 PRODUCT_PACKAGES
+= \
179 android.hardware.keymaster@
3.0-impl \
180 android.hardware.keymaster@
3.0-service
183 PRODUCT_PACKAGES
+= \
184 android.hardware.light@
2.0-service.exynos9610
187 PRODUCT_PACKAGES
+= \
191 PRODUCT_COPY_FILES
+= \
192 $(COMMON_PATH
)/configs
/media
/media_codecs.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs.xml \
193 $(COMMON_PATH
)/configs
/media
/media_codecs_dolby_audio.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_dolby_audio.xml \
194 $(COMMON_PATH
)/configs
/media
/media_codecs_google_audio.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_google_audio.xml \
195 $(COMMON_PATH
)/configs
/media
/media_codecs_google_telephony.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_google_telephony.xml \
196 $(COMMON_PATH
)/configs
/media
/media_codecs_google_video.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_google_video.xml \
197 $(COMMON_PATH
)/configs
/media
/media_codecs_performance.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_performance.xml \
198 $(COMMON_PATH
)/configs
/media
/media_profiles_V1_0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles_V1_0.xml \
199 $(COMMON_PATH
)/configs
/media
/media_profiles_vendor.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles_vendor.xml \
200 $(COMMON_PATH
)/configs
/media
/media_profiles_vendor_V1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles_vendor_V1.xml
203 PRODUCT_PACKAGES
+= \
204 android.hardware.memtrack@
1.0-impl \
205 android.hardware.memtrack@
1.0-service
208 PRODUCT_PACKAGES
+= \
212 com.android.nfc_extras \
213 android.hardware.nfc@
1.0 \
214 android.hardware.nfc@
1.1 \
215 android.hardware.nfc@
1.2
217 PRODUCT_COPY_FILES
+= \
218 $(COMMON_PATH
)/configs
/nfc
/libnfc-nci.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/libnfc-nci.conf \
219 $(COMMON_PATH
)/configs
/nfc
/libnfc-sec-vendor.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/libnfc-sec-vendor.conf
222 PRODUCT_PACKAGES
+= \
223 android.hardware.neuralnetworks@
1.2-service-sample-all
226 PRODUCT_PACKAGES
+= \
227 android.hardware.media.omx@
1.0-service \
228 libstagefright_softomx
231 PRODUCT_COPY_FILES
+= \
232 frameworks
/native
/data
/etc
/android.hardware.audio.low_latency.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.audio.low_latency.xml \
233 frameworks
/native
/data
/etc
/android.hardware.biometrics.face.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.biometrics.face.xml \
234 frameworks
/native
/data
/etc
/android.hardware.bluetooth.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.bluetooth.xml \
235 frameworks
/native
/data
/etc
/android.hardware.bluetooth_le.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.bluetooth_le.xml \
236 frameworks
/native
/data
/etc
/android.hardware.camera.flash-autofocus.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.flash-autofocus.xml \
237 frameworks
/native
/data
/etc
/android.hardware.camera.front.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.front.xml \
238 frameworks
/native
/data
/etc
/android.hardware.camera.full.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.full.xml \
239 frameworks
/native
/data
/etc
/android.hardware.camera.raw.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.raw.xml \
240 frameworks
/native
/data
/etc
/android.hardware.camera.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.xml \
241 frameworks
/native
/data
/etc
/android.hardware.fingerprint.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.fingerprint.xml \
242 frameworks
/native
/data
/etc
/android.hardware.location.gps.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.location.gps.xml \
243 frameworks
/native
/data
/etc
/android.hardware.opengles.aep.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.opengles.aep.xml \
244 frameworks
/native
/data
/etc
/android.hardware.sensor.accelerometer.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.accelerometer.xml \
245 frameworks
/native
/data
/etc
/android.hardware.sensor.compass.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.compass.xml \
246 frameworks
/native
/data
/etc
/android.hardware.sensor.gyroscope.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.gyroscope.xml \
247 frameworks
/native
/data
/etc
/android.hardware.sensor.light.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.light.xml \
248 frameworks
/native
/data
/etc
/android.hardware.sensor.proximity.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.proximity.xml \
249 frameworks
/native
/data
/etc
/android.hardware.sensor.stepcounter.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.stepcounter.xml \
250 frameworks
/native
/data
/etc
/android.hardware.sensor.stepdetector.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.stepdetector.xml \
251 frameworks
/native
/data
/etc
/android.hardware.telephony.cdma.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.telephony.cdma.xml \
252 frameworks
/native
/data
/etc
/android.hardware.telephony.gsm.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.telephony.gsm.xml \
253 frameworks
/native
/data
/etc
/android.hardware.touchscreen.multitouch.jazzhand.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.touchscreen.multitouch.jazzhand.xml \
254 frameworks
/native
/data
/etc
/android.hardware.usb.accessory.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.usb.accessory.xml \
255 frameworks
/native
/data
/etc
/android.hardware.usb.host.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.usb.host.xml \
256 frameworks
/native
/data
/etc
/android.hardware.vulkan.compute-0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.compute.xml \
257 frameworks
/native
/data
/etc
/android.hardware.vulkan.level-1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.level.xml \
258 frameworks
/native
/data
/etc
/android.hardware.vulkan.version-1_1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.version.xml \
259 frameworks
/native
/data
/etc
/android.hardware.wifi.aware.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.aware.xml \
260 frameworks
/native
/data
/etc
/android.hardware.wifi.direct.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.direct.xml \
261 frameworks
/native
/data
/etc
/android.hardware.wifi.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.xml \
262 frameworks
/native
/data
/etc
/android.software.midi.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.midi.xml \
263 frameworks
/native
/data
/etc
/handheld_core_hardware.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/handheld_core_hardware.xml
265 PRODUCT_COPY_FILES
+= \
266 frameworks
/native
/data
/etc
/android.hardware.telephony.ims.xml
:system
/etc
/permissions
/android.hardware.telephony.ims.xml \
267 frameworks
/native
/data
/etc
/android.hardware.nfc.xml
:system
/etc
/permissions
/android.hardware.nfc.xml \
268 frameworks
/native
/data
/etc
/android.hardware.nfc.hce.xml
:system
/etc
/permissions
/android.hardware.nfc.hce.xml \
269 frameworks
/native
/data
/etc
/android.hardware.nfc.hce.xml
:system
/etc
/permissions
/android.hardware.nfc.hcef.xml
272 PRODUCT_PACKAGES
+= \
273 android.hardware.power@
1.0-impl \
274 android.hardware.power@
1.0-service
277 PRODUCT_COPY_FILES
+= \
278 $(COMMON_PATH
)/configs
/public.libraries.txt
:$(TARGET_COPY_OUT_VENDOR
)/etc
/public.libraries.txt
281 PRODUCT_PACKAGES
+= \
282 android.hardware.radio.config@
1.0 \
283 android.hardware.radio.config@
1.1 \
284 android.hardware.radio.config@
1.2 \
285 android.hardware.radio@
1.0 \
286 android.hardware.radio@
1.1 \
287 android.hardware.radio@
1.2 \
288 android.hardware.radio@
1.3 \
289 android.hardware.radio@
1.4 \
290 android.hardware.radio.deprecated@
1.0 \
294 PRODUCT_PACKAGES
+= \
295 android.hardware.renderscript@
1.0-impl
298 PRODUCT_COPY_FILES
+= \
299 $(COMMON_PATH
)/configs
/seccomp
/mediacodec.policy
:$(TARGET_COPY_OUT_VENDOR
)/etc
/seccomp_policy
/mediacodec.policy
302 PRODUCT_PACKAGES
+= \
303 android.hardware.sensors@
1.0-impl \
304 android.hardware.sensors@
1.0-service
306 PRODUCT_COPY_FILES
+= \
307 $(COMMON_PATH
)/configs
/sensors
/hals.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/sensors
/hals.conf \
308 $(COMMON_PATH
)/configs
/sensors
/mot_sensor_settings.json
:$(TARGET_COPY_OUT_VENDOR
)/etc
/sensors
/mot_sensor_settings.json
311 PRODUCT_PACKAGES
+= \
315 PRODUCT_PACKAGES
+= \
316 android.hardware.thermal@
1.0-impl \
317 android.hardware.thermal@
1.0-service \
319 PRODUCT_COPY_FILES
+= \
320 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal.conf \
321 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal.env
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal.env \
322 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal-kane.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal-kane.conf \
323 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal-kane-retin.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal-kane-retin.conf \
324 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal-troika.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal-troika.conf
327 PRODUCT_PACKAGES
+= \
328 vendor.lineage.trust@
1.0-service
331 PRODUCT_PACKAGES
+= \
332 android.hardware.usb@
1.1-service.exynos9610
335 PRODUCT_PACKAGES
+= \
336 android.hardware.vibrator@
1.0-service.exynos9610
339 PRODUCT_PACKAGES
+= \
340 android.hardware.wifi@
1.0-service \
347 wpa_supplicant.conf \
349 PRODUCT_COPY_FILES
+= \
350 $(COMMON_PATH
)/configs
/wifi
/p2p_supplicant.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/wifi
/p2p_supplicant.conf \
351 $(COMMON_PATH
)/configs
/wifi
/wpa_supplicant.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/wifi
/wpa_supplicant.conf