-
Notifications
You must be signed in to change notification settings - Fork 1
/
device.mk
412 lines (346 loc) · 10.6 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
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
#
# Copyright (C) 2023 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Virtual A/B
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
# Enable Dalvik
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
# AAPT
# Device uses high-density artwork where available
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# Shipping API level
BOARD_SHIPPING_API_LEVEL := 30
PRODUCT_SHIPPING_API_LEVEL := 30
# VNDK version
PRODUCT_TARGET_VNDK_VERSION := $(PRODUCT_SHIPPING_API_LEVEL)
PRODUCT_EXTRA_VNDK_VERSIONS := $(PRODUCT_SHIPPING_API_LEVEL)
# A/B
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
# Atrace
PRODUCT_PACKAGES += \
# ANT+
PRODUCT_PACKAGES += \
AntHalService-Soong \
# Audio
PRODUCT_PACKAGES += \
android.hardware.audio.service \
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.bluetooth.default \
audio.primary.kona \
audio.r_submix.default \
audio.usb.default
# Audio configs
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/audio/lenovo,$(TARGET_COPY_OUT_VENDOR)/etc) \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/audio/qcom-caf,$(TARGET_COPY_OUT_VENDOR)/etc)
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.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml
PRODUCT_COPY_FILES += \
frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
# Audio (Extensions)
PRODUCT_PACKAGES += \
liba2dpoffload \
libaudiopreprocessing \
libbatterylistener \
libbundlewrapper \
libcirrusspkrprot \
libcomprcapture \
libexthwplugin \
libhdmiedid \
libhdmipassthru \
libhfp \
libsndmonitor \
libspkrprot
# Audio (FX modules)
PRODUCT_PACKAGES += \
libdownmix \
libdynproc \
libeffectproxy \
libldnhncr \
libqcompostprocbundle \
libqcomvisualizer \
libqcomvoiceprocessing \
libreverbwrapper \
libvolumelistener
# Boot animation
TARGET_SCREEN_HEIGHT := 2560
TARGET_SCREEN_WIDTH := 1600
# Boot control
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES_DEBUG += \
bootctl
# Bluetooth
PRODUCT_PACKAGES += \
libqti_vndfwk_detect \
libqti_vndfwk_detect.vendor
# Bluetooth Audio
PRODUCT_PACKAGES += \
libbluetooth_audio_session \
# Camera
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
libcamera2ndk_vendor
# CNE
PRODUCT_PACKAGES += \
libvndfwk_detect_jni.qti \
libvndfwk_detect_jni.qti.vendor
# CAS
PRODUCT_PACKAGES += \
# Display
PRODUCT_PACKAGES += \
vendor.qti.hardware.display.composer-service
PRODUCT_PACKAGES += \
vendor.qti.hardware.display.allocator-service \
vendor.qti.hardware.display.composer-service \
PRODUCT_PACKAGES += \
gralloc.default \
gralloc.kona \
memtrack.kona
PRODUCT_PACKAGES += \
libdisplayconfig.qti \
libdisplayconfig.qti.vendor \
libdisplayconfig.system.qti \
libqdMetaData \
libqdMetaData.system \
libqdutils \
libqservice \
libsdmcore \
libsdmutils \
libtinyxml \
libvulkan \
# DRM
PRODUCT_PACKAGES += \
libclearkeycasplugin.vendor
# fastbootd
PRODUCT_PACKAGES += \
fastbootd
# FM
PRODUCT_PACKAGES += \
FM2 \
libqcomfm_jni \
init.qti.fm.sh \
qcom.fmradio
PRODUCT_BOOT_JARS += qcom.fmradio
# Gatekeeper
PRODUCT_PACKAGES += \
# GNSS
PRODUCT_PACKAGES += \
libsynergy_loc_api \
libjson
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/flp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/flp.conf \
$(LOCAL_PATH)/gps/gps.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gps.conf \
$(LOCAL_PATH)/gps/izat.conf:$(TARGET_COPY_OUT_VENDOR)/etc/izat.conf \
$(LOCAL_PATH)/gps/lowi.conf:$(TARGET_COPY_OUT_VENDOR)/etc/lowi.conf \
$(LOCAL_PATH)/gps/sap.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sap.conf \
$(LOCAL_PATH)/gps/xtwifi.conf:$(TARGET_COPY_OUT_VENDOR)/etc/xtwifi.conf
# Health
PRODUCT_PACKAGES += \
# IPA
PRODUCT_PACKAGES += \
libnetfilter_conntrack \
libnfnetlink
# IPA Manager
PRODUCT_PACKAGES += \
ipacm \
ipacm-diag \
IPACM_cfg.xml\
libipanat \
liboffloadhal
# Lights
PRODUCT_PACKAGES += \
android.hardware.lights-service.qti \
lights.kona
# Local Time
PRODUCT_PACKAGES += \
local_time.default
# Media (OMX)
PRODUCT_PACKAGES += \
libc2dcolorconvert \
libplatformconfig
PRODUCT_PACKAGES += \
libmm-omxcore:64 \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxG711Enc \
libOmxQcelp13Enc \
libOmxVdec \
libOmxVenc \
libstagefrighthw
# Neural networks
PRODUCT_PACKAGES += \
# Overlays
PRODUCT_ENFORCE_RRO_TARGETS := *
# Partitions
PRODUCT_BUILD_SUPER_PARTITION := false
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Perf
PRODUCT_PACKAGES += \
# Product characteristics
PRODUCT_CHARACTERISTICS := nosdcard
# Power
PRODUCT_PACKAGES += \
android.hardware.power-service-qti \
power.default
# RenderScript
PRODUCT_PACKAGES += \
# Rootdir
PRODUCT_PACKAGES += \
init.qcom.sdio.sh \
init.class_main.sh \
init.qcom.post_boot.sh \
init.qti.dcvs.sh \
init.qti.media.sh \
init.qcom.sh \
init.qcom.efs.sync.sh \
qca6234-service.sh \
init.qcom.class_core.sh \
init.qti.chg_policy.sh \
init.qcom.usb.sh \
init.qcom.sensors.sh \
init.mdm.sh \
init.qcom.coex.sh \
init.qcom.early_boot.sh \
init.qti.qcv.sh \
init.qti.display_boot.sh \
init.qti.fm.sh \
init.crda.sh
PRODUCT_PACKAGES += \
fstab.qcom \
init.qcom.usb.rc \
init.target.wigig.rc \
init.qti.ufs.rc \
init.target.rc \
init.qcom.rc \
init.qcom.factory.rc \
init.recovery.qcom.rc \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_VENDOR_RAMDISK_OUT)/first_stage_ramdisk/fstab.qcom
# Sensors
PRODUCT_PACKAGES += \
libsensorndkbridge
# Service Tracker
PRODUCT_PACKAGES += \
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Thermal
PRODUCT_PACKAGES += \
# USB
PRODUCT_PACKAGES += \
# Update
PRODUCT_PACKAGES += \
update_engine \
update_engine_sideload \
update_verifier
PRODUCT_PACKAGES += \
checkpoint_gc \
otapreopt_script
# Wi-Fi
PRODUCT_PACKAGES += \
hostapd \
libwpa_client \
libwifi-hal:64 \
libwifi-hal-ctrl \
libwifi-hal-qcom \
[email protected]:64 \
WifiResCommon \
wpa_supplicant \
wpa_supplicant.conf
PRODUCT_PACKAGES += \
libqsap_sdk
# Inherit the proprietary files
$(call inherit-product, vendor/lenovo/J716F/J716F-vendor.mk)