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
125 PRODUCT_PACKAGES
+= \
130 PRODUCT_PACKAGES
+= \
131 android.hardware.gatekeeper@
1.0-impl \
132 android.hardware.gatekeeper@
1.0-service
135 PRODUCT_COPY_FILES
+= \
136 $(COMMON_PATH
)/configs
/gps
/gps.cfg
:$(TARGET_COPY_OUT_VENDOR
)/etc
/gnss
/gps.cfg
140 # Device uses high-density artwork where available
141 PRODUCT_AAPT_CONFIG
:= xlarge
142 PRODUCT_AAPT_PREF_CONFIG
:= xxxhdpi
143 # A list of dpis to select prebuilt apk, in precedence order.
144 PRODUCT_AAPT_PREBUILT_DPI
:= xxxhdpi xxhdpi xhdpi hdpi
147 PRODUCT_PACKAGES
+= \
148 android.hardware.health@
2.0-service
151 PRODUCT_COPY_FILES
+= \
152 $(COMMON_PATH
)/configs
/privapp-permissions-hotword.xml
:system
/etc
/permissions
/privapp-permissions-hotword.xml
155 PRODUCT_COPY_FILES
+= \
156 $(COMMON_PATH
)/configs
/init
/carrier
/init.default.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/carrier
/init.default.rc \
157 $(COMMON_PATH
)/configs
/init
/carrier
/init.retin.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/carrier
/init.retin.rc \
158 $(COMMON_PATH
)/configs
/init
/hw
/init.mmi.overlay.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/hw
/init.mmi.overlay.rc \
159 $(COMMON_PATH
)/configs
/init
/init.ets.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.ets.rc \
160 $(COMMON_PATH
)/configs
/init
/init.exynos.sensorhub.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.exynos.sensorhub.rc \
161 $(COMMON_PATH
)/configs
/init
/init.exynos9610.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.exynos9610.rc \
162 $(COMMON_PATH
)/configs
/init
/init.exynos9610.usb.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.exynos9610.usb.rc \
163 $(COMMON_PATH
)/configs
/init
/init.mmi.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.mmi.rc \
164 $(COMMON_PATH
)/configs
/init
/init.nfc.sec.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/init.nfc.sec.rc \
165 $(COMMON_PATH
)/configs
/init
/init.recovery.exynos9610.rc
:$(TARGET_COPY_OUT_ROOT
)/init.recovery.exynos9610.rc \
166 $(COMMON_PATH
)/configs
/init
/mobicore.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/mobicore.rc \
167 $(COMMON_PATH
)/configs
/init
/rild.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/rild.rc \
168 $(COMMON_PATH
)/configs
/init
/ueventd.rc
:$(TARGET_COPY_OUT_VENDOR
)/ueventd.rc \
169 $(COMMON_PATH
)/configs
/init
/vendor.mmi.carrier.rc
:$(TARGET_COPY_OUT_VENDOR
)/etc
/init
/vendor.mmi.carrier.rc \
170 $(COMMON_PATH
)/configs
/fstab.exynos9610
:$(TARGET_COPY_OUT_VENDOR
)/etc
/fstab.exynos9610
173 PRODUCT_PACKAGES
+= \
174 android.hardware.keymaster@
3.0-impl \
175 android.hardware.keymaster@
3.0-service
178 PRODUCT_PACKAGES
+= \
179 android.hardware.light@
2.0-service.exynos9610
182 PRODUCT_COPY_FILES
+= \
183 $(COMMON_PATH
)/configs
/media
/media_codecs.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs.xml \
184 $(COMMON_PATH
)/configs
/media
/media_codecs_dolby_audio.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_dolby_audio.xml \
185 $(COMMON_PATH
)/configs
/media
/media_codecs_google_audio.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_google_audio.xml \
186 $(COMMON_PATH
)/configs
/media
/media_codecs_google_telephony.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_google_telephony.xml \
187 $(COMMON_PATH
)/configs
/media
/media_codecs_google_video.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_google_video.xml \
188 $(COMMON_PATH
)/configs
/media
/media_codecs_performance.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_codecs_performance.xml \
189 $(COMMON_PATH
)/configs
/media
/media_profiles_V1_0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles_V1_0.xml \
190 $(COMMON_PATH
)/configs
/media
/media_profiles_vendor.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles_vendor.xml \
191 $(COMMON_PATH
)/configs
/media
/media_profiles_vendor_V1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/media_profiles_vendor_V1.xml
194 PRODUCT_PACKAGES
+= \
195 android.hardware.memtrack@
1.0-impl \
196 android.hardware.memtrack@
1.0-service
199 PRODUCT_PACKAGES
+= \
203 com.android.nfc_extras \
204 android.hardware.nfc@
1.0 \
205 android.hardware.nfc@
1.1 \
206 android.hardware.nfc@
1.2
208 PRODUCT_COPY_FILES
+= \
209 $(COMMON_PATH
)/configs
/nfc
/libnfc-nci.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/libnfc-nci.conf \
210 $(COMMON_PATH
)/configs
/nfc
/libnfc-sec-vendor.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/libnfc-sec-vendor.conf
213 PRODUCT_PACKAGES
+= \
214 android.hardware.neuralnetworks@
1.2-service-sample-all
217 PRODUCT_PACKAGES
+= \
218 android.hardware.media.omx@
1.0-service \
219 libstagefright_softomx
222 PRODUCT_COPY_FILES
+= \
223 frameworks
/native
/data
/etc
/android.hardware.audio.low_latency.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.audio.low_latency.xml \
224 frameworks
/native
/data
/etc
/android.hardware.biometrics.face.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.biometrics.face.xml \
225 frameworks
/native
/data
/etc
/android.hardware.bluetooth.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.bluetooth.xml \
226 frameworks
/native
/data
/etc
/android.hardware.bluetooth_le.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.bluetooth_le.xml \
227 frameworks
/native
/data
/etc
/android.hardware.camera.flash-autofocus.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.flash-autofocus.xml \
228 frameworks
/native
/data
/etc
/android.hardware.camera.front.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.front.xml \
229 frameworks
/native
/data
/etc
/android.hardware.camera.full.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.full.xml \
230 frameworks
/native
/data
/etc
/android.hardware.camera.raw.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.raw.xml \
231 frameworks
/native
/data
/etc
/android.hardware.camera.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.camera.xml \
232 frameworks
/native
/data
/etc
/android.hardware.fingerprint.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.fingerprint.xml \
233 frameworks
/native
/data
/etc
/android.hardware.location.gps.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.location.gps.xml \
234 frameworks
/native
/data
/etc
/android.hardware.opengles.aep.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.opengles.aep.xml \
235 frameworks
/native
/data
/etc
/android.hardware.sensor.accelerometer.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.accelerometer.xml \
236 frameworks
/native
/data
/etc
/android.hardware.sensor.compass.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.compass.xml \
237 frameworks
/native
/data
/etc
/android.hardware.sensor.gyroscope.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.gyroscope.xml \
238 frameworks
/native
/data
/etc
/android.hardware.sensor.light.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.light.xml \
239 frameworks
/native
/data
/etc
/android.hardware.sensor.proximity.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.proximity.xml \
240 frameworks
/native
/data
/etc
/android.hardware.sensor.stepcounter.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.stepcounter.xml \
241 frameworks
/native
/data
/etc
/android.hardware.sensor.stepdetector.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.sensor.stepdetector.xml \
242 frameworks
/native
/data
/etc
/android.hardware.telephony.cdma.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.telephony.cdma.xml \
243 frameworks
/native
/data
/etc
/android.hardware.telephony.gsm.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.telephony.gsm.xml \
244 frameworks
/native
/data
/etc
/android.hardware.touchscreen.multitouch.jazzhand.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.touchscreen.multitouch.jazzhand.xml \
245 frameworks
/native
/data
/etc
/android.hardware.usb.accessory.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.usb.accessory.xml \
246 frameworks
/native
/data
/etc
/android.hardware.usb.host.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.usb.host.xml \
247 frameworks
/native
/data
/etc
/android.hardware.vulkan.compute-0.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.compute.xml \
248 frameworks
/native
/data
/etc
/android.hardware.vulkan.level-1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.level.xml \
249 frameworks
/native
/data
/etc
/android.hardware.vulkan.version-1_1.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.vulkan.version.xml \
250 frameworks
/native
/data
/etc
/android.hardware.wifi.aware.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.aware.xml \
251 frameworks
/native
/data
/etc
/android.hardware.wifi.direct.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.direct.xml \
252 frameworks
/native
/data
/etc
/android.hardware.wifi.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.hardware.wifi.xml \
253 frameworks
/native
/data
/etc
/android.software.midi.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/android.software.midi.xml \
254 frameworks
/native
/data
/etc
/handheld_core_hardware.xml
:$(TARGET_COPY_OUT_VENDOR
)/etc
/permissions
/handheld_core_hardware.xml
256 PRODUCT_COPY_FILES
+= \
257 frameworks
/native
/data
/etc
/android.hardware.telephony.ims.xml
:system
/etc
/permissions
/android.hardware.telephony.ims.xml \
258 frameworks
/native
/data
/etc
/android.hardware.nfc.xml
:system
/etc
/permissions
/android.hardware.nfc.xml \
259 frameworks
/native
/data
/etc
/android.hardware.nfc.hce.xml
:system
/etc
/permissions
/android.hardware.nfc.hce.xml \
260 frameworks
/native
/data
/etc
/android.hardware.nfc.hce.xml
:system
/etc
/permissions
/android.hardware.nfc.hcef.xml
263 PRODUCT_PACKAGES
+= \
264 android.hardware.power@
1.0-impl \
265 android.hardware.power@
1.0-service
268 PRODUCT_COPY_FILES
+= \
269 $(COMMON_PATH
)/configs
/public.libraries.txt
:$(TARGET_COPY_OUT_VENDOR
)/etc
/public.libraries.txt
272 PRODUCT_PACKAGES
+= \
273 android.hardware.radio.config@
1.0 \
274 android.hardware.radio.config@
1.1 \
275 android.hardware.radio.config@
1.2 \
276 android.hardware.radio@
1.0 \
277 android.hardware.radio@
1.1 \
278 android.hardware.radio@
1.2 \
279 android.hardware.radio@
1.3 \
280 android.hardware.radio@
1.4 \
281 android.hardware.radio.deprecated@
1.0 \
285 PRODUCT_PACKAGES
+= \
286 android.hardware.renderscript@
1.0-impl
289 PRODUCT_COPY_FILES
+= \
290 $(COMMON_PATH
)/configs
/seccomp
/mediacodec.policy
:$(TARGET_COPY_OUT_VENDOR
)/etc
/seccomp_policy
/mediacodec.policy
293 PRODUCT_PACKAGES
+= \
294 android.hardware.sensors@
1.0-impl \
295 android.hardware.sensors@
1.0-service
297 PRODUCT_COPY_FILES
+= \
298 $(COMMON_PATH
)/configs
/sensors
/hals.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/sensors
/hals.conf \
299 $(COMMON_PATH
)/configs
/sensors
/mot_sensor_settings.json
:$(TARGET_COPY_OUT_VENDOR
)/etc
/sensors
/mot_sensor_settings.json
302 PRODUCT_PACKAGES
+= \
306 PRODUCT_PACKAGES
+= \
307 android.hardware.thermal@
1.0-impl \
308 android.hardware.thermal@
1.0-service \
310 PRODUCT_COPY_FILES
+= \
311 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal.conf \
312 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal.env
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal.env \
313 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal-kane.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal-kane.conf \
314 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal-kane-retin.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal-kane-retin.conf \
315 $(COMMON_PATH
)/configs
/thermal
/exynos-thermal-troika.conf
:$(TARGET_COPY_OUT_VENDOR
)/exynos-thermal-troika.conf
318 PRODUCT_PACKAGES
+= \
319 android.hardware.vibrator@
1.0-service.exynos9610
322 PRODUCT_PACKAGES
+= \
323 android.hardware.wifi@
1.0-service \
330 wpa_supplicant.conf \
332 PRODUCT_COPY_FILES
+= \
333 $(COMMON_PATH
)/configs
/wifi
/p2p_supplicant.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/wifi
/p2p_supplicant.conf \
334 $(COMMON_PATH
)/configs
/wifi
/wpa_supplicant.conf
:$(TARGET_COPY_OUT_VENDOR
)/etc
/wifi
/wpa_supplicant.conf