blob: 6b579ac4695356e263fc4fece971d468d7595809 [file] [log] [blame]
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -04001LOCAL_PATH := device/samsung/gprimeltecan
2$(call inherit-product-if-exists, vendor/samsung/gprimeltecan/gprimeltecan-vendor.mk)
3$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
4
5# Inherit from common
6$(call inherit-product, device/samsung/qcom-common/qcom-common.mk)
7
8# Also get non-open-source specific aspects if available
9$(call inherit-product-if-exists, vendor/samsung/gprimeltecan/gprimeltecan-common-vendor.mk)
10
Zvikomborero VIncent Zvikaramba02209a62016-07-22 01:42:40 -040011include $(LOCAL_PATH)/keylayout/Layouts.mk
12
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040013# Common overlay
14DEVICE_PACKAGE_OVERLAYS += device/samsung/gprimeltecan/overlay
15
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040016PRODUCT_COPY_FILES += \
Zvikomborero VIncent Zvikaramba6a393df2016-08-02 01:18:34 -040017 $(LOCAL_PATH)/dt.img:dt.img
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040018
19#Android EGL implementation
20PRODUCT_PACKAGES += libGLES_android
21
22PRODUCT_PACKAGES += libtime_genoff
23
24# ANT+
25PRODUCT_PACKAGES += \
26 AntHalService \
27 antradio_app \
28 com.dsi.ant.antradio_library \
29 libantradio
30
Zvikomborero VIncent Zvikarambab05eac12016-07-21 22:26:10 -040031#NFC
32PRODUCT_PACKAGES += \
Zvikomborero VIncent Zvikarambab05eac12016-07-21 22:26:10 -040033 Tag \
Zvikomborero VIncent Zvikaramba02e33332016-07-22 00:44:22 -040034 com.android.nfc_extras \
35 com.android.nfc.helper
Zvikomborero VIncent Zvikaramba93af1862016-07-26 06:10:39 -040036
37# NfcNci \
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040038# libnfc-nci \
39# libnfc_nci_jni \
40# nfc_nci.msm8916 \
Zvikomborero VIncent Zvikarambab05eac12016-07-21 22:26:10 -040041
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040042# Audio
43PRODUCT_PACKAGES += \
44 audio.a2dp.default \
45 audio.primary.msm8916 \
Zvikomborero VIncent Zvikaramba527fc1e2016-08-18 19:34:51 -040046 audio.primary.default \
47 audio_policy.msm8916 \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040048 audio.r_submix.default \
49 audio.usb.default \
50 audiod \
51 libaudio-resampler \
52 libqcompostprocbundle \
53 libqcomvisualizer \
54 libqcomvoiceprocessing \
Zvikomborero VIncent Zvikaramba527fc1e2016-08-18 19:34:51 -040055 tinymix \
56 tinyplay \
57 tinycap \
58 tinypcminfo
59
Zvikomborero Vincent Zvikarambafbb96d82016-07-28 22:32:34 -040060#VoLTE calling support
61PRODUCT_PACKAGES += \
62 com.android.ims \
63 com.android.ims.internal \
Zvikomborero Vincent Zvikaramba06d5d222016-07-28 22:35:36 -040064 ims-common \
65 voip-common
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040066
Zvikomborero VIncent Zvikaramba6a393df2016-08-02 01:18:34 -040067# Configuration
68PRODUCT_COPY_FILES += \
69 $(LOCAL_PATH)/configs/Diag.cfg:system/etc/Diag.cfg \
70 $(LOCAL_PATH)/configs/Diag_audio.cfg:system/etc/Diag_audio.cfg \
71 $(LOCAL_PATH)/configs/Diag_volte.cfg:system/etc/Diag_volte.cfg \
72 $(LOCAL_PATH)/configs/Diag_zero.cfg:system/etc/Diag_zero.cfg
73
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040074# Audio configuration
75PRODUCT_COPY_FILES += \
76 $(LOCAL_PATH)/audio/Bluetooth_cal.acdb:system/etc/Bluetooth_cal.acdb \
77 $(LOCAL_PATH)/audio/General_cal.acdb:system/etc/General_cal.acdb \
78 $(LOCAL_PATH)/audio/Global_cal.acdb:system/etc/Global_cal.acdb \
79 $(LOCAL_PATH)/audio/Handset_cal.acdb:system/etc/Handset_cal.acdb \
80 $(LOCAL_PATH)/audio/Hdmi_cal.acdb:system/etc/Hdmi_cal.acdb \
81 $(LOCAL_PATH)/audio/Headset_cal.acdb:system/etc/Headset_cal.acdb \
82 $(LOCAL_PATH)/audio/Speaker_cal.acdb:system/etc/Speaker_cal.acdb \
83 $(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
84 $(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
85 $(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml
86
87# Boot jars
Zvikomborero VIncent Zvikaramba527fc1e2016-08-18 19:34:51 -040088PRODUCT_BOOT_JARS += \
89 tcmiface \
Zvikomborero VIncent Zvikaramba02497312016-08-18 22:08:50 -040090 qcom.fmradio \
Zvikomborero VIncent Zvikaramba527fc1e2016-08-18 19:34:51 -040091 qcmediaplayer
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040092# oem-services \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040093
94# Connectivity Engine support
95PRODUCT_PACKAGES += \
96 libcnefeatureconfig
97
Zvikomborero VIncent Zvikarambaebdf85d2016-07-25 03:16:14 -040098#Camera
99PRODUCT_PACKAGES += \
Zvikomborero VIncent Zvikaramba527fc1e2016-08-18 19:34:51 -0400100 libmm-qcamera \
Zvikomborero VIncent Zvikarambaebdf85d2016-07-25 03:16:14 -0400101 camera.msm8916
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400102
Zvikomborero VIncent Zvikaramba25bda1b2016-08-18 22:12:55 -0400103# Doze
104PRODUCT_PACKAGES += \
105 SamsungDoze
106
107# Touch issue workaround
108PRODUCT_PACKAGES += \
109 InputDisabler
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400110
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400111# Display
112PRODUCT_PACKAGES += \
113 copybit.msm8916 \
114 gralloc.msm8916 \
115 hwcomposer.msm8916 \
116 libtinyxml \
117 memtrack.msm8916
118
119# Ebtables
120PRODUCT_PACKAGES += \
121 ebtables \
122 ethertypes \
123 libebtc
124
125# FM
126PRODUCT_PACKAGES += \
Zvikomborero VIncent Zvikaramba02497312016-08-18 22:08:50 -0400127 FM2 \
128 FMRecord \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400129 libqcomfm_jni \
130 qcom.fmradio
131
132# INIT
133PRODUCT_PACKAGES += \
134 fstab.qcom \
135 init.carrier.rc \
136 init.class_main.sh \
137 init.mdm.sh \
Zvikomborero VIncent Zvikaramba62e14b42016-08-08 12:38:26 -0400138 init.qcom.audio.sh \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400139 init.qcom.bms.sh \
Zvikomborero VIncent Zvikarambadf096f42016-08-18 23:02:31 -0400140 init.qcom.bt.sh \
Zvikomborero VIncent Zvikarambadb2d64c2016-08-19 01:20:36 -0400141 init.qcom.uicc.sh \
142 init.qcom.wifi.sh \
143 init.qcom.post_boot.sh \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400144 init.qcom.class_core.sh \
145 init.qcom.early_boot.sh \
146 init.qcom.factory.sh \
147 init.qcom.syspart_fixup.sh \
148 init.qcom.usb.rc \
149 init.qcom.usb.sh \
150 init.qcom.rc \
Zvikomborero VIncent Zvikaramba02497312016-08-18 22:08:50 -0400151 init.qcom.fm.sh \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400152 init.qcom.sh \
153 init.target.rc \
154 ueventd.qcom.rc \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400155 init.qcom.zram.sh \
156 init.rilchip.rc \
157 init.rilcommon.rc \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400158 twrp.fstab
159
160# Keylayout
161PRODUCT_COPY_FILES += \
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400162 $(LOCAL_PATH)/keylayout/Synaptics_RMI4_TouchPad_Sensor.idc:system/usr/idc/Synaptics_RMI4_TouchPad_Sensor.idc \
163 $(LOCAL_PATH)/keylayout/Synaptics_HID_TouchPad.idc:system/usr/idc/Synaptics_HID_TouchPad.idc \
164 $(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl \
165 $(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \
166 $(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
167 $(LOCAL_PATH)/keylayout/Generic.kl:system/usr/keylayout/Generic.kl \
168 $(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400169
170# Keystore
171PRODUCT_PACKAGES += \
172 keystore.msm8916
173
174# libhealthd.qcom
175PRODUCT_PACKAGES += \
Zvikomborero VIncent Zvikaramba2a847cc2016-08-13 23:54:36 -0400176 libhealthd.qcom \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400177 libhealthd
178
179# Lights
180PRODUCT_PACKAGES += \
181 lights.msm8916
182
183# Live Wallpapers
184PRODUCT_PACKAGES += \
185 librs_jni
186
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400187# Default Property Overrides
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400188PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400189 persist.sys.usb.config=mtp \
190 telephony.lteOnCdmaDevice=0 \
191 persist.eons.enabled=true \
192 persist.radio.apm_sim_not_pwdn=1 \
193 persist.radio.rilversion=8 \
194 rild.libpath=/system/lib/libsec-ril.so \
195 persist.cne.feature=0 \
196 persist.radio.lte_vrte_ltd=1 \
197 persist.radio.add_power_save=1 \
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400198 camera2.portability.force_api=1 \
199 ro.secure=0 \
200 ro.adb.secure=0 \
201 ro.debuggable=1 \
Zvikomborero VIncent Zvikaramba6a393df2016-08-02 01:18:34 -0400202 persist.service.adb.enable=1 \
203 ro.telephony.ril_class=SamsungQcomRIL
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400204
Zvikomborero VIncent Zvikaramba35c03342016-07-24 20:35:44 -0400205# GPS
Zvikomborero VIncent Zvikarambaea469272016-07-26 05:26:49 -0400206#PRODUCT_PACKAGES += \
207# gps.default \
208# libloc_core \
209# libgps.utils \
210# libloc_eng \
211# libloc_api_v02
Zvikomborero VIncent Zvikaramba1ceb0d22016-07-22 13:01:44 -0400212
213#Sensors
214PRODUCT_PACKAGES += \
215 sensors.default
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400216
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400217#GPS Configurations
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400218PRODUCT_COPY_FILES += \
219 $(LOCAL_PATH)/gps/flp.conf:system/etc/flp.conf \
220 $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
221 $(LOCAL_PATH)/gps/izat.conf:system/etc/izat.conf \
222 $(LOCAL_PATH)/gps/sap.conf:system/etc/sap.conf
223
224# macloader
225PRODUCT_PACKAGES += macloader
226
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400227# Media configurations
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400228PRODUCT_COPY_FILES += \
229 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
230 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
231 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
Zvikomborero VIncent Zvikaramba8f401d32016-08-12 22:53:19 -0400232 $(LOCAL_PATH)/media/media_codecs_8929.xml:system/etc/media_codecs_8929.xml \
233 $(LOCAL_PATH)/media/media_codecs_8939.xml:system/etc/media_codecs_8939.xml \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400234 $(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
235 $(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml
236
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400237# frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml \
238
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400239# MSM IRQ Balancer configuration file
240PRODUCT_COPY_FILES += \
241 $(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
242
243# Misc
244PRODUCT_PACKAGES += \
245 curl \
246 libbson \
247 libcurl \
248 tcpdump
249
250# OMX
251PRODUCT_PACKAGES += \
252 libdashplayer \
253 libdivxdrmdecrypt \
254 libmm-omxcore \
255 libOmxAacEnc \
256 libOmxAmrEnc \
257 libOmxCore \
258 libOmxEvrcEnc \
259 libOmxQcelp13Enc \
260 libOmxSwVencMpeg4 \
261 libOmxVdec \
262 libOmxVdecHevc \
263 libOmxVenc \
264 libOmxVidEnc \
265 libOmxVdpp \
266 libstagefrighthw \
267 qcmediaplayer
268
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400269# Permissions
270PRODUCT_COPY_FILES += \
271 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
272 frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
273 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
274 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
275 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
276 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
277 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
278 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
279 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
280 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
281 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
282 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
283 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
284 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
285 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
286 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
287 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
288 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
289 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
290 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
291 frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
292 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
293 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
294
295# Power HAL
296PRODUCT_PACKAGES += \
297 power.msm8916
298
299# Prebuilt
300PRODUCT_COPY_FILES += \
301 $(LOCAL_PATH)/prebuilt/dsi_config.xml:system/etc/data/dsi_config.xml \
302 $(LOCAL_PATH)/prebuilt/netmgr_config.xml:system/etc/data/netmgr_config.xml \
303 $(LOCAL_PATH)/prebuilt/qmi_config.xml:system/etc/data/qmi_config.xml
304
305# Properties
306PRODUCT_PROPERTY_OVERRIDES += \
307 ro.use_data_netmgrd=false \
308 dalvik.vm.heapgrowthlimit=128m \
309 ro.security.icd.flagmode=single \
310 ro.vendor.extension_library=libqti-perfd-client.so \
311 persist.radio.apm_sim_not_pwdn=1 \
312 persist.gps.qc_nlp_in_use=1 \
313 persist.loc.nlp_name=com.qualcomm.location \
314 ro.gps.agps_provider=1 \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400315 ro.pip.gated=0 \
316 ro.product.model=SM-G530W \
Zvikomborero VIncent Zvikaramba3c858282016-08-03 21:55:57 -0400317 ro.product.device=gprimeltecan \
Zvikomborero VIncent Zvikaramba7af71552016-08-10 13:24:00 -0400318 cm.updater.uri=http://grandprime.ddns.net/api \
319 ro.telephony.ril_class=SamsungQcomRIL
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400320
321# Ril
322PRODUCT_PACKAGES += \
323 libxml2
324
325# Screen density
326PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
327PRODUCT_AAPT_PREF_CONFIG := xhdpi
328
329# security config
330PRODUCT_COPY_FILES += \
331 $(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
332
333# Terminal
334PRODUCT_PACKAGES += Terminal
335
336# USB
337PRODUCT_PACKAGES += \
338 com.android.future.usb.accessory
339
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400340# Wifi configuration files
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400341PRODUCT_COPY_FILES += \
Zvikomborero VIncent Zvikaramba99abb022016-08-18 22:24:11 -0400342 $(LOCAL_PATH)/wifi/cred.conf:system/etc/wifi/cred.conf \
343 $(LOCAL_PATH)/wifi/hostapd.accept:system/etc/hostapd/hostapd.accept \
344 $(LOCAL_PATH)/wifi/hostapd_default.conf:system/etc/hostapd/hostapd_default.conf \
345 $(LOCAL_PATH)/wifi/hostapd.deny:system/etc/hostapd/hostapd.deny \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400346 $(LOCAL_PATH)/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
347 $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
348 $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
349 $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
350 $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
351 $(LOCAL_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
Zvikomborero VIncent Zvikaramba3c858282016-08-03 21:55:57 -0400352
353#WLAN
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400354PRODUCT_PACKAGES += \
355 hostapd \
356 hostapd_cli \
357 libQWiFiSoftApCfg \
358 libqsap_sdk \
359 libwpa_client \
Zvikomborero VIncent Zvikarambab2235ef2016-08-19 02:08:47 -0400360 libwcnss_qmi \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400361 wcnss_service \
362 wpa_supplicant
363
364# Inhert dalvik heap values from aosp
365$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)