blob: 74cdb6276c92d3f4af347dfc9013a5f6510b2fa7 [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 \
129 init.qcom.bms.sh \
130 init.qcom.class_core.sh \
131 init.qcom.early_boot.sh \
132 init.qcom.factory.sh \
133 init.qcom.syspart_fixup.sh \
134 init.qcom.usb.rc \
135 init.qcom.usb.sh \
136 init.qcom.rc \
137 init.qcom.sh \
138 init.target.rc \
139 ueventd.qcom.rc \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400140 init.qcom.zram.sh \
141 init.rilchip.rc \
142 init.rilcommon.rc \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400143 twrp.fstab
144
145# Keylayout
146PRODUCT_COPY_FILES += \
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400147 $(LOCAL_PATH)/keylayout/Synaptics_RMI4_TouchPad_Sensor.idc:system/usr/idc/Synaptics_RMI4_TouchPad_Sensor.idc \
148 $(LOCAL_PATH)/keylayout/Synaptics_HID_TouchPad.idc:system/usr/idc/Synaptics_HID_TouchPad.idc \
149 $(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl \
150 $(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \
151 $(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
152 $(LOCAL_PATH)/keylayout/Generic.kl:system/usr/keylayout/Generic.kl \
153 $(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400154
155# Keystore
156PRODUCT_PACKAGES += \
157 keystore.msm8916
158
159# libhealthd.qcom
160PRODUCT_PACKAGES += \
161 libhealthd
162
163# Lights
164PRODUCT_PACKAGES += \
165 lights.msm8916
166
167# Live Wallpapers
168PRODUCT_PACKAGES += \
169 librs_jni
170
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400171# Default Property Overrides
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400172PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400173 persist.sys.usb.config=mtp \
174 telephony.lteOnCdmaDevice=0 \
175 persist.eons.enabled=true \
176 persist.radio.apm_sim_not_pwdn=1 \
177 persist.radio.rilversion=8 \
178 rild.libpath=/system/lib/libsec-ril.so \
179 persist.cne.feature=0 \
180 persist.radio.lte_vrte_ltd=1 \
181 persist.radio.add_power_save=1 \
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400182 camera2.portability.force_api=1 \
183 ro.secure=0 \
184 ro.adb.secure=0 \
185 ro.debuggable=1 \
Zvikomborero VIncent Zvikaramba6a393df2016-08-02 01:18:34 -0400186 persist.service.adb.enable=1 \
187 ro.telephony.ril_class=SamsungQcomRIL
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400188
Zvikomborero VIncent Zvikaramba35c03342016-07-24 20:35:44 -0400189# GPS
Zvikomborero VIncent Zvikarambaea469272016-07-26 05:26:49 -0400190#PRODUCT_PACKAGES += \
191# gps.default \
192# libloc_core \
193# libgps.utils \
194# libloc_eng \
195# libloc_api_v02
Zvikomborero VIncent Zvikaramba1ceb0d22016-07-22 13:01:44 -0400196
197#Sensors
198PRODUCT_PACKAGES += \
199 sensors.default
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400200
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400201#GPS Configurations
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400202PRODUCT_COPY_FILES += \
203 $(LOCAL_PATH)/gps/flp.conf:system/etc/flp.conf \
204 $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
205 $(LOCAL_PATH)/gps/izat.conf:system/etc/izat.conf \
206 $(LOCAL_PATH)/gps/sap.conf:system/etc/sap.conf
207
208# macloader
209PRODUCT_PACKAGES += macloader
210
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400211# Media configurations
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400212PRODUCT_COPY_FILES += \
213 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
214 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
215 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 -0400216 $(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
217 $(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml
218
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400219# frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml \
220
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400221# MSM IRQ Balancer configuration file
222PRODUCT_COPY_FILES += \
223 $(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
224
225# Misc
226PRODUCT_PACKAGES += \
227 curl \
228 libbson \
229 libcurl \
230 tcpdump
231
232# OMX
233PRODUCT_PACKAGES += \
234 libdashplayer \
235 libdivxdrmdecrypt \
236 libmm-omxcore \
237 libOmxAacEnc \
238 libOmxAmrEnc \
239 libOmxCore \
240 libOmxEvrcEnc \
241 libOmxQcelp13Enc \
242 libOmxSwVencMpeg4 \
243 libOmxVdec \
244 libOmxVdecHevc \
245 libOmxVenc \
246 libOmxVidEnc \
247 libOmxVdpp \
248 libstagefrighthw \
249 qcmediaplayer
250
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400251# Permissions
252PRODUCT_COPY_FILES += \
253 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
254 frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
255 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
256 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
257 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
258 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
259 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
260 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
261 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
262 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
263 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
264 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
265 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
266 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
267 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
268 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
269 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
270 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
271 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
272 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
273 frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
274 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
275 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
276
277# Power HAL
278PRODUCT_PACKAGES += \
279 power.msm8916
280
281# Prebuilt
282PRODUCT_COPY_FILES += \
283 $(LOCAL_PATH)/prebuilt/dsi_config.xml:system/etc/data/dsi_config.xml \
284 $(LOCAL_PATH)/prebuilt/netmgr_config.xml:system/etc/data/netmgr_config.xml \
285 $(LOCAL_PATH)/prebuilt/qmi_config.xml:system/etc/data/qmi_config.xml
286
287# Properties
288PRODUCT_PROPERTY_OVERRIDES += \
289 ro.use_data_netmgrd=false \
290 dalvik.vm.heapgrowthlimit=128m \
291 ro.security.icd.flagmode=single \
292 ro.vendor.extension_library=libqti-perfd-client.so \
293 persist.radio.apm_sim_not_pwdn=1 \
294 persist.gps.qc_nlp_in_use=1 \
295 persist.loc.nlp_name=com.qualcomm.location \
296 ro.gps.agps_provider=1 \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400297 ro.pip.gated=0 \
298 ro.product.model=SM-G530W \
299 ro.product.device=gprimeltecan
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400300
301# Ril
302PRODUCT_PACKAGES += \
303 libxml2
304
305# Screen density
306PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
307PRODUCT_AAPT_PREF_CONFIG := xhdpi
308
309# security config
310PRODUCT_COPY_FILES += \
311 $(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
Zvikomborero VIncent Zvikarambae0afd272016-07-26 06:09:04 -0400312
Zvikomborero VIncent Zvikaramba52830262016-07-26 06:16:40 -0400313# ril switch script files
Zvikomborero VIncent Zvikarambae0afd272016-07-26 06:09:04 -0400314PRODUCT_COPY_FILES += \
Zvikomborero VIncent Zvikaramba52830262016-07-26 06:16:40 -0400315 $(LOCAL_PATH)/scripts/rilswitch.sh:system/bin/rilswitch.sh \
316 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/libreference-ril.so:system/rilswitch/caf/lib/libreference-ril.so \
317 $(LOCAL_PATH)/scripts/rilswitch/caf/bin/rild:system/rilswitch/caf/bin/rild \
318 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/libril.so:system/rilswitch/caf/lib/libril.so \
319 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/librilutils.so:system/rilswitch/caf/lib/librilutils.so
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400320
321# Terminal
322PRODUCT_PACKAGES += Terminal
323
324# USB
325PRODUCT_PACKAGES += \
326 com.android.future.usb.accessory
327
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400328# Wifi configuration files
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400329PRODUCT_COPY_FILES += \
330 $(LOCAL_PATH)/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
331 $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
332 $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
333 $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
334 $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
335 $(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 -0400336
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400337PRODUCT_PACKAGES += \
338 hostapd \
339 hostapd_cli \
340 libQWiFiSoftApCfg \
341 libqsap_sdk \
342 libwpa_client \
343 wcnss_service \
344 wpa_supplicant
345
346# Inhert dalvik heap values from aosp
347$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)