-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
243 lines (189 loc) · 6.17 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
#
# Copyright (C) 2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Get non-open-source specific aspects
$(call inherit-product, vendor/realme/X2/X2-vendor.mk)
# VNDK
PRODUCT_TARGET_VNDK_VERSION := 29
PRODUCT_EXTRA_VNDK_VERSIONS := 29
#LMKD STAT LOGGING
TARGET_LMKD_STATS_LOG := true
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
$(LOCAL_PATH)/overlay-lineage
# Properties
-include $(LOCAL_PATH)/product_props.mk
PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
# Screen density
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# Privapp Whitelist
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/privapp-permissions-X2.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-X2.xml \
$(LOCAL_PATH)/configs/privapp-permissions-X2.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-X2.xml \
$(LOCAL_PATH)/configs/privapp-permissions-X2.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/privapp-permissions-X2.xml
# AID/fs configs
PRODUCT_PACKAGES += \
fs_config_files
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
tinymix
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml \
$(LOCAL_PATH)/configs/audio/audio_platform_info_oppo_19771.xml:system/etc/audio_platform_info_oppo_19771.xml \
$(LOCAL_PATH)/configs/audio/mixer_paths_19771.xml:system/etc/mixer_paths_19771.xml
# Bluetooth
PRODUCT_PACKAGES += \
BluetoothQti
# Camera
PRODUCT_PACKAGES += \
Snap
# Common init scripts
PRODUCT_PACKAGES += \
init.qcom.rc \
init.devicesetting.rc
PRODUCT_PACKAGES += \
fstab.qcom
# Dalvik
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dex2oat64.enabled=true
PRODUCT_DEX_PREOPT_DEFAULT_COMPILER_FILTER := verify
# Display
PRODUCT_PACKAGES += \
libdisplayconfig \
libqdMetaData \
libqdMetaData.system \
libvulkan
# Doze
PRODUCT_PACKAGES += \
devicesettings \
RealmeDoze
# Fingerprint
PRODUCT_PACKAGES += \
# Fingerprint
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml
# Lighthouse Specific perms
PRODUCT_COPY_FILES += \
vendor/lighthouse/config/permissions/vendor.lineage.biometrics.fingerprint.inscreen.xml:system/etc/permissions/vendor.lineage.biometrics.fingerprint.inscreen.xml
# HIDL
PRODUCT_PACKAGES += \
[email protected]_system \
[email protected]_system \
libhidltransport \
libhwbinder
# Google Photos
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/pixel_2016_exclusive.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/pixel_2016_exclusive.xml
#Hardware
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/native/data/etc/android.hardware.telephony.ims.xml:system/etc/permissions/android.hardware.telephony.ims.xml
# HotwordEnrollement app permissions
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/privapp-permissions-hotword.xml:system/etc/permissions/privapp-permissions-hotword.xml
# TEMP-HOSTPAD
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/hostapd:system/bin/hw/hostapd
# Iorap
PRODUCT_PACKAGES += \
iorap-app-startup-runner
# IMS
PRODUCT_PACKAGES += \
ims-ext-common \
ims_ext_common.xml
# Input
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/gpio-keys.kl:/system/usr/keylayout/gpio-keys.kl
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_profiles_vendor.xml:system/etc/media_profiles_vendor.xml
# NFC
PRODUCT_PACKAGES += \
com.android.nfc_extras \
com.gsma.services.nfc \
NfcNci \
SecureElement \
Tag
# Net
PRODUCT_PACKAGES += \
netutils-wrapper-1.0
# Overlays
PRODUCT_PACKAGES += \
NotchBarKiller \
NoCutoutOverlay
# Power
PRODUCT_PACKAGES += \
power.qcom:64
# QTI
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/qti_whitelist.xml:system/etc/sysconfig/qti_whitelist.xml \
$(LOCAL_PATH)/permissions/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-qti.xml
# Ramdisk
PRODUCT_PACKAGES += \
init.safailnet.rc
# Seccomp policy
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
$(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
# Sensors Hal
PRODUCT_PACKAGES += \
# Sensors
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml
# Ril
PRODUCT_PACKAGES += \
# Recorder
PRODUCT_PACKAGES += \
OPScreenRecorder
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH) \
vendor/nxp/opensource/sn100x
# Telephony
PRODUCT_PACKAGES += \
qti-telephony-hidl-wrapper \
qti_telephony_hidl_wrapper.xml \
qti-telephony-utils \
qti_telephony_utils.xml \
telephony-ext
PRODUCT_BOOT_JARS += \
telephony-ext
# TextClassifier
PRODUCT_PACKAGES += \
textclassifier.bundle1
# Wifi Overlay
PRODUCT_PACKAGES += \
RealmeX2WifiOverlay
# WiFi Display
PRODUCT_PACKAGES += \
libnl
PRODUCT_BOOT_JARS += \
WfdCommon
# Lights
PRODUCT_PACKAGES += \
# RCS
PRODUCT_PACKAGES += \
com.android.ims.rcsmanager \
PresencePolling \
RcsService
# Touch
PRODUCT_PACKAGES += \