-
Notifications
You must be signed in to change notification settings - Fork 11
/
msm8226.mk
224 lines (194 loc) · 6.3 KB
/
msm8226.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
# Copyright (C) 2013 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.
LOCAL_PATH := device/motorola/msm8226-common
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
## overlays
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Audio
PRODUCT_PACKAGES += \
audio_policy.msm8226 \
libaudio-resampler \
libaudioparameter \
libqcomvisualizer \
libqcompostprocbundle \
libqcomvoiceprocessing \
tinycap \
tinymix \
tinypcminfo \
tinyplay
# Ebtables
PRODUCT_PACKAGES += \
ebtables \
ethertypes \
libebtc
# FM radio
PRODUCT_PACKAGES += \
qcom.fmradio \
libqcomfm_jni \
FM2 \
FMRecord
# GPS
PRODUCT_PACKAGES += \
gps.msm8226
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
$(LOCAL_PATH)/gps/flp.conf:system/etc/flp.conf \
$(LOCAL_PATH)/gps/izat.conf:system/etc/izat.conf \
$(LOCAL_PATH)/gps/quipc.conf:system/etc/quipc.conf \
$(LOCAL_PATH)/gps/sap.conf:system/etc/sap.conf
PRODUCT_PROPERTY_OVERRIDES += \
ro.qc.sdk.izat.premium_enabled=0 \
ro.qc.sdk.izat.service_mask=0x0 \
persist.gps.qc_nlp_in_use=0 \
ro.gps.agps_provider=1
# HAL
PRODUCT_PACKAGES += \
copybit.msm8226\
gralloc.msm8226 \
hwcomposer.msm8226 \
keystore.msm8226 \
lights.MSM8226 \
memtrack.msm8226 \
power.msm8226
# QRNG
PRODUCT_PACKAGES += qrngp
# Utilities
PRODUCT_PACKAGES += \
charge_only_mode \
mkfs.f2fs \
fsck.f2fs \
fibmap.f2fs \
wcnss_service
# Wifi
PRODUCT_COPY_FILES += \
kernel/motorola/msm8226/drivers/net/wireless/prima/firmware_bin/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
kernel/motorola/msm8226/drivers/net/wireless/prima/firmware_bin/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
$(LOCAL_PATH)/config/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
# Symlinks
PRODUCT_PACKAGES += WCNSS_qcom_wlan_factory_nv.bin
# Ramdisk
PRODUCT_PACKAGES += \
bbx \
fstab.qcom \
gpecheck.sh \
gpe-fstab.qcom \
init.qcom.rc \
init.recovery.qcom.rc \
init.target.rc \
ueventd.qcom.rc
# Init scripts
PRODUCT_PACKAGES += \
init.mmi.boot.sh \
init.mmi.rc \
init.mmi.touch.sh \
init.qcom.post_boot.sh \
init.qcom.sh \
init.qcom.ssr.sh \
init.qcom.wifi.sh
# TWRP
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/twrp.fstab:recovery/root/etc/twrp.fstab
# Audio configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/config/audio_effects.conf:system/vendor/etc/audio_effects.conf \
$(LOCAL_PATH)/config/mixer_paths.xml:system/etc/mixer_paths.xml
# Charger - moto uses a funky ro.bootmode=mot-charger
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/moto_com.sh:system/bin/moto_com.sh
# EGL config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/egl.cfg:system/lib/egl/egl.cfg
# Location secuity configuration file
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/sec_config:system/etc/sec_config
# Media config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/config/media_codecs.xml:system/etc/media_codecs.xml
# QCOM Display
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.fb_always_on=1 \
ro.hdmi.enable=true
# Media
PRODUCT_PROPERTY_OVERRIDES += \
media.stagefright.enable-player=true \
media.stagefright.enable-http=true \
media.stagefright.enable-aac=true \
media.stagefright.enable-qcp=true \
media.stagefright.enable-fma2dp=true \
media.stagefright.enable-scan=true \
mmp.enable.3g2=true \
ro.audio.fm_max_volume=4096 \
ro.qualcomm.cabl=0 \
use.voice.path.for.pcm.voip=true \
qcom.bt.le_dev_pwr_class=1 \
ro.qc.sdk.audio.ssr=false \
persist.audio.fluence.voicecall=true \
persist.audio.fluence.voicerec=false \
ro.qc.sdk.audio.fluencetype=fluence \
persist.audio.fluence.speaker=true \
use.voice.path.for.pcm.voip=true \
use.dedicated.device.for.voip=true \
audio.offload.buffer.size.kb=32 \
audio.offload.gapless.enabled=false \
av.offload.enable=false \
av.streaming.offload.enable=false \
audio.offload.pcm.enable=false \
mm.enable.smoothstreaming=true \
qcom.hw.aac.encoder=true \
persist.audio.calfile0=/etc/Bluetooth_cal.acdb \
persist.audio.calfile1=/etc/General_cal.acdb \
persist.audio.calfile2=/etc/Global_cal.acdb \
persist.audio.calfile3=/etc/Handset_cal.acdb \
persist.audio.calfile4=/etc/Hdmi_cal.acdb \
persist.audio.calfile5=/etc/Headset_cal.acdb \
persist.audio.calfile6=/etc/Speaker_cal.acdb
# Misc
PRODUCT_PROPERTY_OVERRIDES += \
ro.usb.mtp=0x2e82 \
ro.usb.mtp_adb=0x2e76 \
ro.usb.ptp=0x2e83 \
ro.usb.ptp_adb=0x2e84 \
ro.usb.bpt=0x2e28 \
ro.usb.bpt_adb=0x2e29 \
ro.usb.bpteth=0x2e2a \
ro.usb.bpteth_adb=0x2e2b \
persist.gps.qc_nlp_in_use=0 \
persist.fuse_sdcard=true \
ro.crypto.fuse_sdcard=true \
ro.nfc.port=I2C \
ro.cwm.forbid_format="/fsg,/firmware,/persist,/boot"
# Radio
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/system/vendor/lib/libril-qc-qmi-1.so \
persist.radio.msgtunnel.start=false \
persist.sys.ssr.restart_level=3 \
persist.sys.qc.sub.rdump.on=1 \
ro.telephony.default_network=7 \
telephony.lteOnCdmaDevice=0 \
persist.radio.no_wait_for_card=1 \
persist.radio.dfr_mode_set=1
# Opengles version 3
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=196608
# QCOM Display
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=320
# QC Perf
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.extension_library=/system/vendor/lib/libqc-opt.so
$(call inherit-product, device/motorola/qcom-common/qcom-common.mk)