blob: d8ed732beec932a4bafee904dbd3a396d7a26602 [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
16ifeq ($(TARGET_PREBUILT_KERNEL),)
17 LOCAL_KERNEL := device/samsung/gprimeltecan/kernel
18else
19 LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
20endif
21
22PRODUCT_COPY_FILES += \
23 $(LOCAL_KERNEL):kernel
24
25#Android EGL implementation
26PRODUCT_PACKAGES += libGLES_android
27
28PRODUCT_PACKAGES += libtime_genoff
29
30# ANT+
31PRODUCT_PACKAGES += \
32 AntHalService \
33 antradio_app \
34 com.dsi.ant.antradio_library \
35 libantradio
36
Zvikomborero VIncent Zvikarambab05eac12016-07-21 22:26:10 -040037#NFC
38PRODUCT_PACKAGES += \
Zvikomborero VIncent Zvikarambab05eac12016-07-21 22:26:10 -040039 Tag \
Zvikomborero VIncent Zvikaramba02e33332016-07-22 00:44:22 -040040 com.android.nfc_extras \
41 com.android.nfc.helper
Zvikomborero VIncent Zvikaramba93af1862016-07-26 06:10:39 -040042
43# NfcNci \
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040044# libnfc-nci \
45# libnfc_nci_jni \
46# nfc_nci.msm8916 \
Zvikomborero VIncent Zvikarambab05eac12016-07-21 22:26:10 -040047
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040048# Audio
49PRODUCT_PACKAGES += \
50 audio.a2dp.default \
51 audio.primary.msm8916 \
52 audio.r_submix.default \
53 audio.usb.default \
54 audiod \
55 libaudio-resampler \
56 libqcompostprocbundle \
57 libqcomvisualizer \
58 libqcomvoiceprocessing \
59 tinymix
Zvikomborero Vincent Zvikarambafbb96d82016-07-28 22:32:34 -040060
61#VoLTE calling support
62PRODUCT_PACKAGES += \
63 com.android.ims \
64 com.android.ims.internal \
Zvikomborero Vincent Zvikaramba06d5d222016-07-28 22:35:36 -040065 ims-common \
66 voip-common
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040067
68# Audio configuration
69PRODUCT_COPY_FILES += \
70 $(LOCAL_PATH)/audio/Bluetooth_cal.acdb:system/etc/Bluetooth_cal.acdb \
71 $(LOCAL_PATH)/audio/General_cal.acdb:system/etc/General_cal.acdb \
72 $(LOCAL_PATH)/audio/Global_cal.acdb:system/etc/Global_cal.acdb \
73 $(LOCAL_PATH)/audio/Handset_cal.acdb:system/etc/Handset_cal.acdb \
74 $(LOCAL_PATH)/audio/Hdmi_cal.acdb:system/etc/Hdmi_cal.acdb \
75 $(LOCAL_PATH)/audio/Headset_cal.acdb:system/etc/Headset_cal.acdb \
76 $(LOCAL_PATH)/audio/Speaker_cal.acdb:system/etc/Speaker_cal.acdb \
77 $(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
78 $(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
79 $(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml
80
81# Boot jars
82PRODUCT_BOOT_JARS += \
83 qcom.fmradio \
Zvikomborero VIncent Zvikaramba9d7f8d32016-07-25 22:03:29 -040084 tcmiface
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040085
Zvikomborero VIncent Zvikaramba9d7f8d32016-07-25 22:03:29 -040086# qcmediaplayer
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040087# oem-services \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040088
89# Connectivity Engine support
90PRODUCT_PACKAGES += \
91 libcnefeatureconfig
92
Zvikomborero VIncent Zvikarambaebdf85d2016-07-25 03:16:14 -040093#Camera
94PRODUCT_PACKAGES += \
95 camera.msm8916
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040096
97#SAMSUNG RIL
Zvikomborero VIncent Zvikarambad7699372016-07-26 02:41:07 -040098#PRODUCT_PACKAGES += \
99# libsecril-client
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400100
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400101# Display
102PRODUCT_PACKAGES += \
103 copybit.msm8916 \
104 gralloc.msm8916 \
105 hwcomposer.msm8916 \
106 libtinyxml \
107 memtrack.msm8916
108
109# Ebtables
110PRODUCT_PACKAGES += \
111 ebtables \
112 ethertypes \
113 libebtc
114
115# FM
116PRODUCT_PACKAGES += \
117# FM2 \
118# FMRecord \
119 libqcomfm_jni \
120 qcom.fmradio
121
122# INIT
123PRODUCT_PACKAGES += \
124 fstab.qcom \
125 init.carrier.rc \
126 init.class_main.sh \
127 init.mdm.sh \
128 init.qcom.bms.sh \
129 init.qcom.class_core.sh \
130 init.qcom.early_boot.sh \
131 init.qcom.factory.sh \
132 init.qcom.syspart_fixup.sh \
133 init.qcom.usb.rc \
134 init.qcom.usb.sh \
135 init.qcom.rc \
136 init.qcom.sh \
137 init.target.rc \
138 ueventd.qcom.rc \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400139 init.qcom.zram.sh \
140 init.rilchip.rc \
141 init.rilcommon.rc \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400142 twrp.fstab
143
144# Keylayout
145PRODUCT_COPY_FILES += \
146 $(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl \
147 $(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
148 $(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \
149 $(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl
150
151# Keystore
152PRODUCT_PACKAGES += \
153 keystore.msm8916
154
155# libhealthd.qcom
156PRODUCT_PACKAGES += \
157 libhealthd
158
159# Lights
160PRODUCT_PACKAGES += \
161 lights.msm8916
162
163# Live Wallpapers
164PRODUCT_PACKAGES += \
165 librs_jni
166
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400167# USB
168PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400169 persist.sys.usb.config=mtp \
170 telephony.lteOnCdmaDevice=0 \
171 persist.eons.enabled=true \
172 persist.radio.apm_sim_not_pwdn=1 \
173 persist.radio.rilversion=8 \
174 rild.libpath=/system/lib/libsec-ril.so \
175 persist.cne.feature=0 \
176 persist.radio.lte_vrte_ltd=1 \
177 persist.radio.add_power_save=1 \
178 camera2.portability.force_api=1
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400179
Zvikomborero VIncent Zvikaramba35c03342016-07-24 20:35:44 -0400180# GPS
Zvikomborero VIncent Zvikarambaea469272016-07-26 05:26:49 -0400181#PRODUCT_PACKAGES += \
182# gps.default \
183# libloc_core \
184# libgps.utils \
185# libloc_eng \
186# libloc_api_v02
Zvikomborero VIncent Zvikaramba1ceb0d22016-07-22 13:01:44 -0400187
188#Sensors
189PRODUCT_PACKAGES += \
190 sensors.default
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400191
192PRODUCT_COPY_FILES += \
193 $(LOCAL_PATH)/gps/flp.conf:system/etc/flp.conf \
194 $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
195 $(LOCAL_PATH)/gps/izat.conf:system/etc/izat.conf \
196 $(LOCAL_PATH)/gps/sap.conf:system/etc/sap.conf
197
198# macloader
199PRODUCT_PACKAGES += macloader
200
201# Media
202PRODUCT_COPY_FILES += \
203 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
204 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
205 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400206 $(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
207 $(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml
208
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400209# frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml \
210
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400211# MSM IRQ Balancer configuration file
212PRODUCT_COPY_FILES += \
213 $(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
214
215# Misc
216PRODUCT_PACKAGES += \
217 curl \
218 libbson \
219 libcurl \
220 tcpdump
221
222# OMX
223PRODUCT_PACKAGES += \
224 libdashplayer \
225 libdivxdrmdecrypt \
226 libmm-omxcore \
227 libOmxAacEnc \
228 libOmxAmrEnc \
229 libOmxCore \
230 libOmxEvrcEnc \
231 libOmxQcelp13Enc \
232 libOmxSwVencMpeg4 \
233 libOmxVdec \
234 libOmxVdecHevc \
235 libOmxVenc \
236 libOmxVidEnc \
237 libOmxVdpp \
238 libstagefrighthw \
239 qcmediaplayer
240
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400241# Permissions
242PRODUCT_COPY_FILES += \
243 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
244 frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
245 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
246 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
247 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
248 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
249 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
250 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
251 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
252 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
253 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
254 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
255 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
256 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
257 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
258 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
259 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
260 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
261 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
262 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
263 frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
264 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
265 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
266
267# Power HAL
268PRODUCT_PACKAGES += \
269 power.msm8916
270
271# Prebuilt
272PRODUCT_COPY_FILES += \
273 $(LOCAL_PATH)/prebuilt/dsi_config.xml:system/etc/data/dsi_config.xml \
274 $(LOCAL_PATH)/prebuilt/netmgr_config.xml:system/etc/data/netmgr_config.xml \
275 $(LOCAL_PATH)/prebuilt/qmi_config.xml:system/etc/data/qmi_config.xml
276
277# Properties
278PRODUCT_PROPERTY_OVERRIDES += \
279 ro.use_data_netmgrd=false \
280 dalvik.vm.heapgrowthlimit=128m \
281 ro.security.icd.flagmode=single \
282 ro.vendor.extension_library=libqti-perfd-client.so \
283 persist.radio.apm_sim_not_pwdn=1 \
284 persist.gps.qc_nlp_in_use=1 \
285 persist.loc.nlp_name=com.qualcomm.location \
286 ro.gps.agps_provider=1 \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400287 ro.pip.gated=0 \
288 ro.product.model=SM-G530W \
289 ro.product.device=gprimeltecan
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400290
291# Ril
292PRODUCT_PACKAGES += \
293 libxml2
294
295# Screen density
296PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
297PRODUCT_AAPT_PREF_CONFIG := xhdpi
298
299# security config
300PRODUCT_COPY_FILES += \
301 $(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
Zvikomborero VIncent Zvikarambae0afd272016-07-26 06:09:04 -0400302
Zvikomborero VIncent Zvikaramba52830262016-07-26 06:16:40 -0400303# ril switch script files
Zvikomborero VIncent Zvikarambae0afd272016-07-26 06:09:04 -0400304PRODUCT_COPY_FILES += \
Zvikomborero VIncent Zvikaramba52830262016-07-26 06:16:40 -0400305 $(LOCAL_PATH)/scripts/rilswitch.sh:system/bin/rilswitch.sh \
306 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/libreference-ril.so:system/rilswitch/caf/lib/libreference-ril.so \
307 $(LOCAL_PATH)/scripts/rilswitch/caf/bin/rild:system/rilswitch/caf/bin/rild \
308 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/libril.so:system/rilswitch/caf/lib/libril.so \
309 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/librilutils.so:system/rilswitch/caf/lib/librilutils.so
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400310
311# Terminal
312PRODUCT_PACKAGES += Terminal
313
314# USB
315PRODUCT_PACKAGES += \
316 com.android.future.usb.accessory
317
318# Wifi
319PRODUCT_COPY_FILES += \
320 $(LOCAL_PATH)/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
321 $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
322 $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
323 $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
324 $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
325 $(LOCAL_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400326
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400327PRODUCT_PACKAGES += \
328 hostapd \
329 hostapd_cli \
330 libQWiFiSoftApCfg \
331 libqsap_sdk \
332 libwpa_client \
333 wcnss_service \
334 wpa_supplicant
335
336# Inhert dalvik heap values from aosp
337$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)