-
Notifications
You must be signed in to change notification settings - Fork 12
/
msm8974.mk
233 lines (188 loc) · 6.07 KB
/
msm8974.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
# Copyright (C) 2014 The CyanogenMod 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.
PLATFORM_PATH := device/sony/msm8974-common
# Include msm8974-common system properties
include $(PLATFORM_PATH)/system_prop.mk
# Overlay
DEVICE_PACKAGE_OVERLAYS += \
$(PLATFORM_PATH)/overlay \
$(PLATFORM_PATH)/overlay-carbon
ifneq ($(BOARD_HAVE_RADIO),false)
$(call inherit-product, $(PLATFORM_PATH)/radio.mk)
else
DEVICE_PACKAGE_OVERLAYS += $(PLATFORM_PATH)/overlay-wifionly
endif
PRODUCT_ENFORCE_RRO_TARGETS := \
framework-res
# Audio
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.primary.msm8974 \
audio.r_submix.default \
audio.usb.default
PRODUCT_PACKAGES += \
libaudio-resampler \
libtinycompress \
libqcomvisualizer \
libqcomvoiceprocessing \
tinymix
# Audio configuration
PRODUCT_COPY_FILES += \
$(PLATFORM_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
# Bluetooth
PRODUCT_PACKAGES += \
# Camera
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
camera.qcom \
libshims_signal
PRODUCT_PACKAGES += \
Snap
# Display
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
hwcomposer.msm8974 \
gralloc.msm8974 \
memtrack.msm8974 \
libgenlock \
libmemalloc \
liboverlay \
libqdutils
# DRM
PRODUCT_PACKAGES += \
# FM
PRODUCT_PACKAGES += \
# Gatekeeper
PRODUCT_PACKAGES += \
# GPS
PRODUCT_PACKAGES += \
gps.msm8974
PRODUCT_COPY_FILES += \
$(PLATFORM_PATH)/gps/etc/flp.conf:system/etc/flp.conf \
$(PLATFORM_PATH)/gps/etc/gps.conf:system/etc/gps.conf \
$(PLATFORM_PATH)/gps/etc/izat.conf:system/etc/izat.conf \
$(PLATFORM_PATH)/gps/etc/sap.conf:system/etc/sap.conf
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml
# Health
PRODUCT_PACKAGES += \
# HIDL
PRODUCT_ENFORCE_VINTF_MANIFEST_OVERRIDE := true
# Ion
PRODUCT_PACKAGES += \
libion
# Keymaster
PRODUCT_PACKAGES += \
# Lights
PRODUCT_PACKAGES += \
lights.msm8974
# Media profile
PRODUCT_COPY_FILES += \
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.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml
# Memtrack
PRODUCT_PACKAGES += \
# Net
PRODUCT_PACKAGES += \
librmnetctl \
libxml2 \
netutils-wrapper-1.0
# Omx
PRODUCT_PACKAGES += \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libOmxVdec \
libOmxVenc \
libc2dcolorconvert \
libstagefrighthw
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml
PRODUCT_COPY_FILES += \
$(PLATFORM_PATH)/configs/permissions_sony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/permissions_sony.xml
# Power
PRODUCT_PACKAGES += \
android.hardware.power-service-qti
# RIL
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
libaudioclient_shim
# Seccomp
PRODUCT_COPY_FILES += \
$(PLATFORM_PATH)/configs/seccomp/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
$(PLATFORM_PATH)/configs/seccomp/mediaextractor.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
# Sensors
PRODUCT_PACKAGES += \
# Thermal management
PRODUCT_PACKAGES += \
thermanager
# TimeKeep
PRODUCT_PACKAGES += \
timekeep \
TimeKeep
# USB
PRODUCT_PACKAGES += \
# Vibrator
PRODUCT_PACKAGES += \
# VNDK
PRODUCT_COPY_FILES += \
prebuilts/vndk/v29/arm/arch-arm-armv7-a-neon/shared/vndk-core/libprotobuf-cpp-lite.so:$(TARGET_COPY_OUT_VENDOR)/lib/libprotobuf-cpp-lite-v29.so
# Wifi
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
libwpa_client \
hostapd \
wificond \
wpa_supplicant \
wpa_supplicant.conf
# Call the proprietary setup
$(call inherit-product-if-exists, vendor/sony/msm8974-common/msm8974-common-vendor.mk)