/
oneplus3.mk
315 lines (251 loc) · 10.3 KB
/
oneplus3.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
TARGET_USES_AOSP := true
TARGET_USES_AOSP_FOR_AUDIO := false
TARGET_USES_QCOM_BSP := false
TARGET_USES_QTIC_EXTENSION := true
TARGET_USES_NQ_NFC := true
ifeq ($(TARGET_USES_AOSP),true)
TARGET_DISABLE_DASH := true
endif
DEVICE_PACKAGE_OVERLAYS += device/oneplus/oneplus3/overlay
TARGET_ENABLE_QC_AV_ENHANCEMENTS := true
TARGET_USES_MEDIA_EXTENSIONS := true
# copy customized media_profiles and media_codecs xmls for oneplus3
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/media/media_profiles.xml:system/vendor/etc/media_profiles_vendor.xml \
$(LOCAL_PATH)/media/media_codecs.xml:system/vendor/etc/media_codecs.xml \
$(LOCAL_PATH)/media/media_codecs_performance.xml:system/vendor/etc/media_codecs_performance.xml \
$(LOCAL_PATH)/media/media_codecs_vendor_audio.xml:system/vendor/etc/media_codecs_vendor_audio.xml
# Power
PRODUCT_PACKAGES += \
android.hardware.power@1.0-service \
android.hardware.power@1.0-impl
$(call inherit-product, device/oneplus/oneplus3/common64.mk)
$(call inherit-product, vendor/oneplus/oneplus3/oneplus3-vendor.mk)
# system prop for opengles version
#
# 196608 is decimal for 0x30000 to report version 3
# 196609 is decimal for 0x30001 to report version 3.1
# 196610 is decimal for 0x30002 to report version 3.2
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=196610
# Audio
include $(TOPDIR)hardware/qcom/audio/configs/msm8996/msm8996.mk
DEVICE_MANIFEST_FILE := $(LOCAL_PATH)/manifest.xml
DEVICE_MATRIX_FILE := $(LOCAL_PATH)/compatibility_matrix.xml
#Android EGL implementation
PRODUCT_PACKAGES += libGLES_android
PRODUCT_PACKAGES += \
audiod \
audio.r_submix.default \
libqcompostprocbundle \
libqcomvisualizer \
libqcomvoiceprocessing
# Audio
PRODUCT_PACKAGES += \
android.hardware.audio@2.0-impl \
android.hardware.audio@2.0-service
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/mixer_paths_tasha.xml:system/vendor/etc/mixer_paths_tasha.xml \
$(LOCAL_PATH)/audio/audio_platform_info.xml:system/vendor/etc/audio_platform_info.xml
# WLAN driver configuration files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/vendor/etc/wifi/WCNSS_qcom_cfg.ini \
$(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/vendor/etc/wifi/wpa_supplicant_overlay.conf \
$(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/vendor/etc/wifi/p2p_supplicant_overlay.conf \
$(LOCAL_PATH)/wifi/hostapd.conf:system/etc/hostapd/hostapd_default.conf \
$(LOCAL_PATH)/wifi/hostapd.accept:system/etc/hostapd/hostapd.accept \
$(LOCAL_PATH)/wifi/hostapd.deny:system/etc/hostapd/hostapd.deny
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/power/power_profile.xml:system/etc/power_profile.xml \
$(LOCAL_PATH)/power/power_profile_3t.xml:system/etc/power_profile_3t.xml
PRODUCT_PACKAGES += \
libcld80211 \
hostapd \
libwpa_client \
wpa_supplicant \
wpa_supplicant.conf \
android.hardware.wifi@1.0-service
# MIDI feature
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.midi.xml:system/vendor/etc/permissions/android.software.midi.xml
#for wlan
PRODUCT_PACKAGES += \
wificond \
wifilogd
#ANT+ stack
PRODUCT_PACKAGES += \
AntHalService \
libantradio \
antradio_app \
libvolumelistener
# Display/Graphics
PRODUCT_PACKAGES += \
android.hardware.graphics.allocator@2.0-impl \
android.hardware.graphics.allocator@2.0-service \
android.hardware.graphics.mapper@2.0-impl \
android.hardware.graphics.composer@2.1-impl \
android.hardware.graphics.composer@2.1-service \
android.hardware.memtrack@1.0-impl \
android.hardware.memtrack@1.0-service \
android.hardware.light@2.0-impl \
android.hardware.light@2.0-service \
android.hardware.configstore@1.0-service \
android.hardware.broadcastradio@1.0-impl
PRODUCT_PACKAGES += \
vendor.display.color@1.0-service \
vendor.display.color@1.0-impl
# Gatekeeper
PRODUCT_PACKAGES += \
android.hardware.gatekeeper@1.0-impl \
android.hardware.gatekeeper@1.0-service
# Keymaster
PRODUCT_PACKAGES += \
android.hardware.keymaster@3.0-impl \
android.hardware.keymaster@3.0-service
# Vibrator
PRODUCT_PACKAGES += \
android.hardware.vibrator@1.0-impl \
android.hardware.vibrator@1.0-service \
# Camera configuration file. Shared by passthrough/binderized camera HAL
PRODUCT_PACKAGES += camera.device@3.2-impl
PRODUCT_PACKAGES += camera.device@1.0-impl
PRODUCT_PACKAGES += android.hardware.camera.provider@2.4-impl
# Enable binderized camera HAL
PRODUCT_PACKAGES += android.hardware.camera.provider@2.4-service
# Sensors
PRODUCT_PACKAGES += android.hardware.sensors@1.0-service
PRODUCT_PACKAGES += android.hardware.sensors@1.0-impl
# Sensor features
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/vendor/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/vendor/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/vendor/etc/permissions/android.hardware.sensor.gyroscope.xml \
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 \
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/vendor/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/vendor/etc/permissions/android.hardware.sensor.stepdetector.xml
# Fingerprint
PRODUCT_PACKAGES += android.hardware.biometrics.fingerprint@2.1-service
# Fingerprint feature
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \
#FEATURE_OPENGLES_EXTENSION_PACK support string config file
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/vendor/etc/permissions/android.hardware.opengles.aep.xml
# MSM IRQ Balancer configuration file
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
# RenderScript HAL
PRODUCT_PACKAGES += \
android.hardware.renderscript@1.0-impl
# RIL
PRODUCT_BOOT_JARS += \
qcnvitems \
qcrilhook
# Thermal
PRODUCT_PACKAGES += thermal.msm8996
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
$(LOCAL_PATH)/nfc/libnfc-nxp.conf:system/etc/libnfc-nxp.conf \
$(LOCAL_PATH)/nfc/nfcee_access.xml:system/etc/nfcee_access.xml
# Media
PRODUCT_PACKAGES += \
libdivxdrmdecrypt \
libOmxVidcCommon \
libstagefright_soft_flacenc
# QC AV Enhancements
PRODUCT_PACKAGES += \
libdashplayer \
libqcmediaplayer \
qcmediaplayer \
libextmedia_jni
# SmartcardService, SIM1,SIM2,eSE1 not including eSE2,SD1 as default
PRODUCT_PROPERTY_OVERRIDES += persist.nfc.smartcard.config=SIM1,SIM2,eSE1
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
PRODUCT_AAPT_PREBUILT_DPI := xxhdpi xhdpi hdpi
#Android fingerprint daemon implementation
PRODUCT_PACKAGES += fingerprintd
PRODUCT_PACKAGES += power.msm8996
PRODUCT_PACKAGES += lights.qcom
PRODUCT_CHARACTERISTICS := nosdcard
# Camera
ifeq ($(TARGET_BUILD_VARIANT), user)
PRODUCT_PROPERTY_OVERRIDES += \
persist.camera.hal.debug=0
endif
PRODUCT_PACKAGES += gps.msm8996
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/etc/flp.conf:system/vendor/etc/flp.conf \
$(LOCAL_PATH)/gps/etc/gps.conf:system/vendor/etc/gps.conf \
$(LOCAL_PATH)/gps/etc/izat.conf:system/vendor/etc/izat.conf \
$(LOCAL_PATH)/gps/etc/lowi.conf:system/vendor/etc/lowi.conf \
$(LOCAL_PATH)/gps/etc/sap.conf:system/vendor/etc/sap.conf \
$(LOCAL_PATH)/gps/etc/xtwifi.conf:system/vendor/etc/xtwifi.conf
# Telephony
PRODUCT_BOOT_JARS += qti-telephony-common
# Tools
PRODUCT_PACKAGES += \
libtinyxml2 \
libjson
# Powerhint configuration file
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/powerhint.xml:system/etc/powerhint.xml
#Healthd packages
PRODUCT_PACKAGES += android.hardware.health@1.0-impl \
android.hardware.health@1.0-convert \
android.hardware.health@1.0-service \
libhealthd.msm
PRODUCT_FULL_TREBLE_OVERRIDE := false
PRODUCT_VENDOR_MOVE_ENABLED := false
# For android_filesystem_config.h
PRODUCT_PACKAGES += fs_config_files \
fs_config_dirs
# Keylayouts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/fpc1020.kl:system/usr/keylayout/fpc1020.kl \
$(LOCAL_PATH)/keylayout/synaptics.kl:system/usr/keylayout/synaptics.kl
PRODUCT_PACKAGES += \
libandroid_net \
libandroid_net_32
#Enable Lights Impl HAL Compilation
PRODUCT_PACKAGES += android.hardware.light@2.0-impl
#set KMGK_USE_QTI_SERVICE to true to enable QTI KEYMASTER and GATEKEEPER HIDLs
ifeq ($(ENABLE_VENDOR_IMAGE), true)
KMGK_USE_QTI_SERVICE := true
endif
#Enable AOSP KEYMASTER and GATEKEEPER HIDLs
ifneq ($(KMGK_USE_QTI_SERVICE), true)
PRODUCT_PACKAGES += android.hardware.gatekeeper@1.0-impl \
android.hardware.gatekeeper@1.0-service \
android.hardware.keymaster@3.0-impl \
android.hardware.keymaster@3.0-service
endif
PRODUCT_PROPERTY_OVERRIDES += rild.libpath=/system/vendor/lib64/libril-qc-qmi-1.so
ifeq ($(ENABLE_AB),true)
#A/B related packages
PRODUCT_PACKAGES += update_engine \
update_engine_client \
update_verifier \
bootctrl.msm8996 \
brillo_update_payload \
android.hardware.boot@1.0-impl \
android.hardware.boot@1.0-service
#Boot control HAL test app
PRODUCT_PACKAGES_DEBUG += bootctl
endif
# system prop for Bluetooth SOC type
PRODUCT_PROPERTY_OVERRIDES += \
qcom.bluetooth.soc=rome
# Set this true as ROME which is programmed
# as embedded wipower mode by deafult
PRODUCT_PROPERTY_OVERRIDES += \
ro.bluetooth.emb_wp_mode=true
#system prop for wipower support
PRODUCT_PROPERTY_OVERRIDES += \
ro.bluetooth.wipower=true
#Thermal
PRODUCT_PACKAGES += android.hardware.thermal@1.0-impl \
android.hardware.thermal@1.0-service
-include $(TOPDIR)vendor/head/oneplus3/device-extension.mk