blob: 5ee19234821207e03ffa02479cfd55286b12776d [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 \
46 audio.r_submix.default \
47 audio.usb.default \
48 audiod \
49 libaudio-resampler \
50 libqcompostprocbundle \
51 libqcomvisualizer \
52 libqcomvoiceprocessing \
53 tinymix
Zvikomborero Vincent Zvikarambafbb96d82016-07-28 22:32:34 -040054
55#VoLTE calling support
56PRODUCT_PACKAGES += \
57 com.android.ims \
58 com.android.ims.internal \
Zvikomborero Vincent Zvikaramba06d5d222016-07-28 22:35:36 -040059 ims-common \
60 voip-common
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040061
Zvikomborero VIncent Zvikaramba6a393df2016-08-02 01:18:34 -040062# Configuration
63PRODUCT_COPY_FILES += \
64 $(LOCAL_PATH)/configs/Diag.cfg:system/etc/Diag.cfg \
65 $(LOCAL_PATH)/configs/Diag_audio.cfg:system/etc/Diag_audio.cfg \
66 $(LOCAL_PATH)/configs/Diag_volte.cfg:system/etc/Diag_volte.cfg \
67 $(LOCAL_PATH)/configs/Diag_zero.cfg:system/etc/Diag_zero.cfg
68
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040069# Audio configuration
70PRODUCT_COPY_FILES += \
71 $(LOCAL_PATH)/audio/Bluetooth_cal.acdb:system/etc/Bluetooth_cal.acdb \
72 $(LOCAL_PATH)/audio/General_cal.acdb:system/etc/General_cal.acdb \
73 $(LOCAL_PATH)/audio/Global_cal.acdb:system/etc/Global_cal.acdb \
74 $(LOCAL_PATH)/audio/Handset_cal.acdb:system/etc/Handset_cal.acdb \
75 $(LOCAL_PATH)/audio/Hdmi_cal.acdb:system/etc/Hdmi_cal.acdb \
76 $(LOCAL_PATH)/audio/Headset_cal.acdb:system/etc/Headset_cal.acdb \
77 $(LOCAL_PATH)/audio/Speaker_cal.acdb:system/etc/Speaker_cal.acdb \
78 $(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
79 $(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
80 $(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml
81
82# Boot jars
83PRODUCT_BOOT_JARS += \
84 qcom.fmradio \
Zvikomborero VIncent Zvikaramba9d7f8d32016-07-25 22:03:29 -040085 tcmiface
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040086
Zvikomborero VIncent Zvikaramba9d7f8d32016-07-25 22:03:29 -040087# qcmediaplayer
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040088# oem-services \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040089
90# Connectivity Engine support
91PRODUCT_PACKAGES += \
92 libcnefeatureconfig
93
Zvikomborero VIncent Zvikarambaebdf85d2016-07-25 03:16:14 -040094#Camera
95PRODUCT_PACKAGES += \
96 camera.msm8916
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040097
98#SAMSUNG RIL
Zvikomborero VIncent Zvikarambad7699372016-07-26 02:41:07 -040099#PRODUCT_PACKAGES += \
100# libsecril-client
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400101
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400102# Display
103PRODUCT_PACKAGES += \
104 copybit.msm8916 \
105 gralloc.msm8916 \
106 hwcomposer.msm8916 \
107 libtinyxml \
108 memtrack.msm8916
109
110# Ebtables
111PRODUCT_PACKAGES += \
112 ebtables \
113 ethertypes \
114 libebtc
115
116# FM
117PRODUCT_PACKAGES += \
118# FM2 \
119# FMRecord \
120 libqcomfm_jni \
121 qcom.fmradio
122
123# INIT
124PRODUCT_PACKAGES += \
125 fstab.qcom \
126 init.carrier.rc \
127 init.class_main.sh \
128 init.mdm.sh \
Zvikomborero VIncent Zvikaramba62e14b42016-08-08 12:38:26 -0400129 init.qcom.audio.sh \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400130 init.qcom.bms.sh \
131 init.qcom.class_core.sh \
132 init.qcom.early_boot.sh \
133 init.qcom.factory.sh \
134 init.qcom.syspart_fixup.sh \
135 init.qcom.usb.rc \
136 init.qcom.usb.sh \
137 init.qcom.rc \
138 init.qcom.sh \
139 init.target.rc \
140 ueventd.qcom.rc \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400141 init.qcom.zram.sh \
142 init.rilchip.rc \
143 init.rilcommon.rc \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400144 twrp.fstab
145
Zvikomborero VIncent Zvikaramba62e14b42016-08-08 12:38:26 -0400146#IMS SERVICE
147#PRODUCT_COPY_FILES += \
148# $(LOCAL_PATH)/ims/framework/imsmanager-common.jar:system/framework/imsmanager-common.jar \
149# $(LOCAL_PATH)/ims/framework/imsmanager-internal.jar:system/framework/imsmanager-internal.jar \
150# $(LOCAL_PATH)/ims/framework/imsmanager.jar:system/framework/imsmanager.jar \
151# $(LOCAL_PATH)/ims/priv-app/ImsLogger+/ImsLogger+.apk:system/priv-app/ImsLogger+/ImsLogger+.apk \
152# $(LOCAL_PATH)/ims/priv-app/imsservice/imsservice.apk:system/priv-app/imsservice/imsservice.apk \
153# $(LOCAL_PATH)/ims/imscm.xml:system/etc/permissions/imscm.xml \
154# $(LOCAL_PATH)/ims/imsmanager_library.xml:system/etc/permissions/imsmanager_library.xml
155
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400156# Keylayout
157PRODUCT_COPY_FILES += \
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400158 $(LOCAL_PATH)/keylayout/Synaptics_RMI4_TouchPad_Sensor.idc:system/usr/idc/Synaptics_RMI4_TouchPad_Sensor.idc \
159 $(LOCAL_PATH)/keylayout/Synaptics_HID_TouchPad.idc:system/usr/idc/Synaptics_HID_TouchPad.idc \
160 $(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl \
161 $(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \
162 $(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
163 $(LOCAL_PATH)/keylayout/Generic.kl:system/usr/keylayout/Generic.kl \
164 $(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400165
166# Keystore
167PRODUCT_PACKAGES += \
168 keystore.msm8916
169
170# libhealthd.qcom
171PRODUCT_PACKAGES += \
172 libhealthd
173
174# Lights
175PRODUCT_PACKAGES += \
176 lights.msm8916
177
178# Live Wallpapers
179PRODUCT_PACKAGES += \
180 librs_jni
181
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400182# Default Property Overrides
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400183PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400184 persist.sys.usb.config=mtp \
185 telephony.lteOnCdmaDevice=0 \
186 persist.eons.enabled=true \
187 persist.radio.apm_sim_not_pwdn=1 \
188 persist.radio.rilversion=8 \
189 rild.libpath=/system/lib/libsec-ril.so \
190 persist.cne.feature=0 \
191 persist.radio.lte_vrte_ltd=1 \
192 persist.radio.add_power_save=1 \
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400193 camera2.portability.force_api=1 \
194 ro.secure=0 \
195 ro.adb.secure=0 \
196 ro.debuggable=1 \
Zvikomborero VIncent Zvikaramba6a393df2016-08-02 01:18:34 -0400197 persist.service.adb.enable=1 \
198 ro.telephony.ril_class=SamsungQcomRIL
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400199
Zvikomborero VIncent Zvikaramba35c03342016-07-24 20:35:44 -0400200# GPS
Zvikomborero VIncent Zvikarambaea469272016-07-26 05:26:49 -0400201#PRODUCT_PACKAGES += \
202# gps.default \
203# libloc_core \
204# libgps.utils \
205# libloc_eng \
206# libloc_api_v02
Zvikomborero VIncent Zvikaramba1ceb0d22016-07-22 13:01:44 -0400207
208#Sensors
209PRODUCT_PACKAGES += \
210 sensors.default
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400211
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400212#GPS Configurations
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400213PRODUCT_COPY_FILES += \
214 $(LOCAL_PATH)/gps/flp.conf:system/etc/flp.conf \
215 $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
216 $(LOCAL_PATH)/gps/izat.conf:system/etc/izat.conf \
217 $(LOCAL_PATH)/gps/sap.conf:system/etc/sap.conf
218
219# macloader
220PRODUCT_PACKAGES += macloader
221
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400222# Media configurations
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400223PRODUCT_COPY_FILES += \
224 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
225 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
226 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 -0400227 $(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
228 $(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml
229
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400230# frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml \
231
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400232# MSM IRQ Balancer configuration file
233PRODUCT_COPY_FILES += \
234 $(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
235
236# Misc
237PRODUCT_PACKAGES += \
238 curl \
239 libbson \
240 libcurl \
241 tcpdump
242
243# OMX
244PRODUCT_PACKAGES += \
245 libdashplayer \
246 libdivxdrmdecrypt \
247 libmm-omxcore \
248 libOmxAacEnc \
249 libOmxAmrEnc \
250 libOmxCore \
251 libOmxEvrcEnc \
252 libOmxQcelp13Enc \
253 libOmxSwVencMpeg4 \
254 libOmxVdec \
255 libOmxVdecHevc \
256 libOmxVenc \
257 libOmxVidEnc \
258 libOmxVdpp \
259 libstagefrighthw \
260 qcmediaplayer
261
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400262# Permissions
263PRODUCT_COPY_FILES += \
264 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
265 frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
266 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
267 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
268 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
269 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
270 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
271 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
272 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
273 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
274 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
275 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
276 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
277 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
278 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
279 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
280 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
281 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
282 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
283 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
284 frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
285 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
286 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
287
288# Power HAL
289PRODUCT_PACKAGES += \
290 power.msm8916
291
292# Prebuilt
293PRODUCT_COPY_FILES += \
294 $(LOCAL_PATH)/prebuilt/dsi_config.xml:system/etc/data/dsi_config.xml \
295 $(LOCAL_PATH)/prebuilt/netmgr_config.xml:system/etc/data/netmgr_config.xml \
296 $(LOCAL_PATH)/prebuilt/qmi_config.xml:system/etc/data/qmi_config.xml
297
298# Properties
299PRODUCT_PROPERTY_OVERRIDES += \
300 ro.use_data_netmgrd=false \
301 dalvik.vm.heapgrowthlimit=128m \
302 ro.security.icd.flagmode=single \
303 ro.vendor.extension_library=libqti-perfd-client.so \
304 persist.radio.apm_sim_not_pwdn=1 \
305 persist.gps.qc_nlp_in_use=1 \
306 persist.loc.nlp_name=com.qualcomm.location \
307 ro.gps.agps_provider=1 \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400308 ro.pip.gated=0 \
309 ro.product.model=SM-G530W \
Zvikomborero VIncent Zvikaramba3c858282016-08-03 21:55:57 -0400310 ro.product.device=gprimeltecan \
Zvikomborero VIncent Zvikaramba62e14b42016-08-08 12:38:26 -0400311 ro.telephony.ril_class=SamsungQcomRIL \
312 cm.updater.uri=http://159.203.17.128/CyanogenModOTA/api
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400313
314# Ril
315PRODUCT_PACKAGES += \
316 libxml2
317
318# Screen density
319PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
320PRODUCT_AAPT_PREF_CONFIG := xhdpi
321
322# security config
323PRODUCT_COPY_FILES += \
324 $(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
Zvikomborero VIncent Zvikarambae0afd272016-07-26 06:09:04 -0400325
Zvikomborero VIncent Zvikaramba52830262016-07-26 06:16:40 -0400326# ril switch script files
Zvikomborero VIncent Zvikarambae0afd272016-07-26 06:09:04 -0400327PRODUCT_COPY_FILES += \
Zvikomborero VIncent Zvikaramba52830262016-07-26 06:16:40 -0400328 $(LOCAL_PATH)/scripts/rilswitch.sh:system/bin/rilswitch.sh \
329 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/libreference-ril.so:system/rilswitch/caf/lib/libreference-ril.so \
330 $(LOCAL_PATH)/scripts/rilswitch/caf/bin/rild:system/rilswitch/caf/bin/rild \
331 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/libril.so:system/rilswitch/caf/lib/libril.so \
332 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/librilutils.so:system/rilswitch/caf/lib/librilutils.so
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400333
334# Terminal
335PRODUCT_PACKAGES += Terminal
336
337# USB
338PRODUCT_PACKAGES += \
339 com.android.future.usb.accessory
340
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400341# Wifi configuration files
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400342PRODUCT_COPY_FILES += \
343 $(LOCAL_PATH)/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
344 $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
345 $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
346 $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
347 $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
348 $(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 -0400349
350#WLAN
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400351PRODUCT_PACKAGES += \
352 hostapd \
353 hostapd_cli \
354 libQWiFiSoftApCfg \
355 libqsap_sdk \
356 libwpa_client \
357 wcnss_service \
358 wpa_supplicant
359
360# Inhert dalvik heap values from aosp
361$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)