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