-
Notifications
You must be signed in to change notification settings - Fork 4
/
device.mk
353 lines (285 loc) · 10.9 KB
/
device.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
# Directories of dependent local repositories
DEVICE_PATH := device/motorola/dubai
HARDWARE_PATH := hardware/motorola
QCOM_COMMON_PATH := device/qcom/common
# Enable virtual A/B compression
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/compression.mk)
# A/B related packages
PRODUCT_PACKAGES += \
update_engine \
update_engine_client \
update_engine_sideload \
update_verifier \
checkpoint_gc \
otapreopt_script
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
FILESYSTEM_TYPE_system=ext4 \
POSTINSTALL_OPTIONAL_system=true
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_vendor=true \
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
FILESYSTEM_TYPE_vendor=ext4 \
POSTINSTALL_OPTIONAL_vendor=true
# AAPT
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := 400dpi
PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
# API
BOARD_SHIPPING_API_LEVEL := 30
BOARD_API_LEVEL := 30
PRODUCT_SHIPPING_API_LEVEL := 30
# Additional native libraries
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/libraries/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt \
$(DEVICE_PATH)/configs/libraries/public.libraries-qti.txt:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/public.libraries-qti.txt
# Android Verified Boot
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml
# Ant
PRODUCT_PACKAGES += \
AntHalService-Soong
# Architecture
TARGET_BOARD_PLATFORM := lahaina
TARGET_BOOTLOADER_BOARD_NAME := dubai
# Atrace
PRODUCT_PACKAGES += \
# Audio
PRODUCT_COPY_FILES += \
frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml
PRODUCT_PACKAGES += \
android.hardware.audio.service \
libaudiopreprocessing \
libbundlewrapper \
libdownmix \
libdynproc \
libeffectproxy \
libldnhncr \
libreverbwrapper \
libvisualizer
# Authsecret
PRODUCT_PACKAGES += \
# AVB
BOARD_AVB_ENABLE := true
# Camera
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml
PRODUCT_PACKAGES += \
[email protected]_64 \
libcamera2ndk_vendor \
libgui_shim_vendor \
DubaiCameraService
# Dalvik
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
# Display
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/display/display_id_4630947043778501762.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_4630947043778501762.xml
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml
PRODUCT_PACKAGES += \
gralloc.default \
libdisplayconfig.system.qti \
libsdmcore \
libsdmutils \
libtinyxml \
libvulkan \
memtrack.default \
# DRM
PRODUCT_PACKAGES += \
# Emulated Storage
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
# Filesystem
PRODUCT_PACKAGES += \
fs_config_files
TARGET_FS_CONFIG_GEN += $(DEVICE_PATH)/configs/mot_aids.fs
# Fingerprint
TARGET_BUILDS_OSS_BIOMETRICS := true
TARGET_USES_FOD_ZPOS := true
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
PRODUCT_PACKAGES += \
# Firmware
$(call inherit-product-if-exists, vendor/motorola/firmware/dubai/config.mk)
# FM
BOARD_HAVE_QCOM_FM := false
# Gatekeeper
PRODUCT_PACKAGES += \
# Generic Kernel Headers
TARGET_HAS_GENERIC_KERNEL_HEADERS := true
# GPS
PRODUCT_PACKAGES += \
libgnsspps \
libsynergy_loc_api
# Health
PRODUCT_PACKAGES += \
# HIDL
PRODUCT_PACKAGES += \
libhidltransport.vendor \
libhwbinder.vendor
# Hotword
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/hotword/product_privapp-permissions-hotword.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-hotword.xml \
$(DEVICE_PATH)/configs/hotword/hotword-hiddenapi-package-whitelist.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/hotword-hiddenapi-package-whitelist.xml
# Init
PRODUCT_PACKAGES += \
charger_fstab.qti \
charger_fw_fstab.qti \
fstab.default \
init.dubai.perf.rc \
init.mmi.charge_only.rc \
init.mmi.chipset.rc \
init.mmi.overlay.rc \
init.mmi.rc \
init.qti.qcv.rc \
init.target.rc \
init.vendor.st21nfc.rc \
ueventd.dubai.rc
PRODUCT_PACKAGES += \
init.mmi.boot.sh \
init.mmi.touch.sh \
init.oem.hw.sh \
init.qcom.sensors.sh \
init.qti.chg_policy.sh \
init.qti.qcv.sh
# Keymaster
PRODUCT_PACKAGES += \
# Manifests
DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/configs/vintf/manifest_yupik.xml
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE += \
$(DEVICE_PATH)/configs/vintf/dubai_vendor_framework_compatibility_matrix.xml
# Moto Actions
PRODUCT_PACKAGES += \
MotoActions
# Moto NrEnabler
PRODUCT_PACKAGES += \
MotoNrEnabler
# Namespaces
PRODUCT_SOONG_NAMESPACES += \
$(DEVICE_PATH)
# Net
PRODUCT_PACKAGES += \
netutils-wrapper-1.0
# NFC
TARGET_USES_ST_AIDL_NFC := true
$(call inherit-product, hardware/st/nfc/nfc_vendor_product.mk)
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf
PRODUCT_PACKAGES += \
com.android.nfc_extras \
libchrome.vendor \
NfcNci \
SecureElement \
Tag
# Overlays
PRODUCT_PACKAGES += \
CarrierConfigResDubai \
FrameworksResDubai \
FrameworksResDubaiAOSPA \
SettingsResDubai \
SettingsProviderResDubai \
SystemUIResDubai \
WifiResTargetDubai \
WifiResTargetMainline
# Partitions - Dynamic
PRODUCT_BUILD_ODM_IMAGE := true
PRODUCT_USE_DYNAMIC_PARTITIONS := true
PRODUCT_PACKAGES += \
fastbootd
PRODUCT_COPY_FILES += $(DEVICE_PATH)/init/fstab.default:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.default
# Partitions - Super
PRODUCT_BUILD_SUPER_PARTITION := false
# QTI Components
TARGET_COMMON_QTI_COMPONENTS += \
adreno \
audio \
av \
bt \
display \
gps \
init \
media \
overlay \
perf \
qseecomd \
telephony \
usb \
vibrator \
wfd \
wlan
# RIL
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml
# Screen
TARGET_SCREEN_DENSITY := 400
# Sensors
TARGET_BUILDS_OSS_SENSORS_SUBHAL := true
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
PRODUCT_PACKAGES += \
libsensorndkbridge
# Storage
PRODUCT_CHARACTERISTICS := nosdcard
# System Helper
PRODUCT_PACKAGES += \
# Thermal
PRODUCT_PACKAGES += \
# Treble
PRODUCT_FULL_TREBLE_OVERRIDE := true
PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
# VNDK
PRODUCT_EXTRA_VNDK_VERSIONS := 30
PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := strict
# WiFi Display
PRODUCT_PACKAGES += \
libwfdaac_vendor
# WLAN
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \
$(DEVICE_PATH)/configs/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/qca6750/WCNSS_qcom_cfg.ini \
$(DEVICE_PATH)/configs/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
$(DEVICE_PATH)/configs/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf
# Hardware Motorola
$(call inherit-product, $(HARDWARE_PATH)/common.mk)
# Proprietary Vendor
$(call inherit-product, vendor/motorola/dubai/dubai-vendor.mk)