forked from LineageOS/android_device_cyanogen_msm8916-common
-
Notifications
You must be signed in to change notification settings - Fork 1
/
msm8916.mk
266 lines (219 loc) · 8.4 KB
/
msm8916.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
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2018 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Overlay
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# ANT+
PRODUCT_PACKAGES += \
AntHalService \
com.dsi.ant.antradio_library \
libantradio
# APEX
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/ld.config.txt:$(TARGET_COPY_OUT_SYSTEM)/etc/swcodec/ld.config.txt
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.r_submix.default \
audio.usb.default \
libaudio-resampler \
tinymix
PRODUCT_PACKAGES += \
audio.primary.msm8916 \
libqcompostprocbundle \
libqcomvisualizer \
libqcomvoiceprocessing
PRODUCT_PACKAGES += \
android.hardware.audio.service \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
# Bluetooth
PRODUCT_PACKAGES += \
libbt-vendor
PRODUCT_PACKAGES += \
# Boot Animtion
TARGET_BOOTANIMATION_HALF_RES := true
# Display
PRODUCT_PACKAGES += \
gralloc.msm8916 \
hwcomposer.msm8916 \
libgenlock \
libtinyxml \
memtrack.msm8916
PRODUCT_PACKAGES += \
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
ro.surface_flinger.force_hwc_copy_for_virtual_displays=true \
ro.surface_flinger.max_frame_buffer_acquired_buffers=3
# DRM
PRODUCT_PACKAGES += \
# Dummy hidl lib for oreo blobs
PRODUCT_PACKAGES += \
libhidltransport \
libhwbinder
# Encryption
PRODUCT_PACKAGES += \
# FM
PRODUCT_PACKAGES += \
FMRadio \
libfmjni
# For config.fs
PRODUCT_PACKAGES += \
fs_config_files
# Gatekeeper
PRODUCT_PACKAGES += \
# GPS
PRODUCT_PACKAGES += \
libshims_get_process_name \
libshims_flp
PRODUCT_PACKAGES += \
# Health
PRODUCT_PACKAGES += \
# Init scripts
PRODUCT_PACKAGES += \
init.qcom.rc \
init.qcom.mem.sh \
init.qcom.power.rc \
init.qcom.usb.rc \
init.recovery.qcom.rc \
ueventd.qcom.rc
PRODUCT_PACKAGES += \
init.qcom.bt.sh
# IRQ balance
ifeq ($(TARGET_BOARD_PLATFORM_VARIANT),msm8939)
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf
endif
# IRSC
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
# Keymaster
PRODUCT_PACKAGES += \
# LiveDisplay
PRODUCT_PACKAGES += \
# Media
PRODUCT_PACKAGES += \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libOmxVdec \
libOmxVenc \
libstagefrighthw
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_codecs_$(TARGET_BOARD_PLATFORM_VARIANT).xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml
# Permissions
PRODUCT_COPY_FILES += \
external/ant-wireless/antradio-library/com.dsi.ant.antradio_library.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.dsi.ant.antradio_library.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml
# Privapp Whitelist
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/privapp-permissions-qti.xml:system/etc/permissions/privapp-permissions-qti.xml
ifeq ($(TARGET_BOARD_PLATFORM_VARIANT),msm8939)
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml
endif
# Power
PRODUCT_PACKAGES += \
android.hardware.power-service-qti
# Radio
PRODUCT_PACKAGES += \
libaudioclient_shim \
libcnefeatureconfig \
librmnetctl \
libxml2
# Recovery
PRODUCT_PACKAGES += \
librecovery_updater_cm
# RenderScript HAL
PRODUCT_PACKAGES += \
# Seccomp
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
# System Properties
$(call inherit-product, device/cyanogen/msm8916-common/system_prop.mk)
ifeq ($(TARGET_BOARD_PLATFORM_VARIANT),msm8939)
$(call inherit-product, device/cyanogen/msm8916-common/system_prop_msm8939.mk)
else ifeq ($(TARGET_BOARD_PLATFORM_VARIANT),msm8916)
$(call inherit-product, device/cyanogen/msm8916-common/system_prop_msm8916.mk)
endif
# TimeKeep
PRODUCT_PACKAGES += \
timekeep \
TimeKeep
# Trust HAL
PRODUCT_PACKAGES += \
# USB
PRODUCT_PACKAGES += \
# Vibrator
PRODUCT_PACKAGES += \
# Wi-Fi
PRODUCT_PACKAGES += \
libwcnss_qmi \
wcnss_service
PRODUCT_PACKAGES += \
hostapd \
wpa_supplicant \
wpa_supplicant.conf
PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
$(LOCAL_PATH)/configs/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
$(LOCAL_PATH)/configs/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_cfg.ini