blob: b6250fdc862c21718ae55eeea8a889667a4786dd [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 Zvikaramba8a1a1472016-07-25 00:45:07 -0400186
Zvikomborero VIncent Zvikaramba35c03342016-07-24 20:35:44 -0400187# GPS
Zvikomborero VIncent Zvikarambaea469272016-07-26 05:26:49 -0400188#PRODUCT_PACKAGES += \
189# gps.default \
190# libloc_core \
191# libgps.utils \
192# libloc_eng \
193# libloc_api_v02
Zvikomborero VIncent Zvikaramba1ceb0d22016-07-22 13:01:44 -0400194
195#Sensors
196PRODUCT_PACKAGES += \
197 sensors.default
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400198
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400199#GPS Configurations
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400200PRODUCT_COPY_FILES += \
201 $(LOCAL_PATH)/gps/flp.conf:system/etc/flp.conf \
202 $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
203 $(LOCAL_PATH)/gps/izat.conf:system/etc/izat.conf \
204 $(LOCAL_PATH)/gps/sap.conf:system/etc/sap.conf
205
206# macloader
207PRODUCT_PACKAGES += macloader
208
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400209# Media configurations
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400210PRODUCT_COPY_FILES += \
211 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
212 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
213 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 -0400214 $(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
215 $(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml
216
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400217# frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml \
218
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400219# MSM IRQ Balancer configuration file
220PRODUCT_COPY_FILES += \
221 $(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
222
223# Misc
224PRODUCT_PACKAGES += \
225 curl \
226 libbson \
227 libcurl \
228 tcpdump
229
230# OMX
231PRODUCT_PACKAGES += \
232 libdashplayer \
233 libdivxdrmdecrypt \
234 libmm-omxcore \
235 libOmxAacEnc \
236 libOmxAmrEnc \
237 libOmxCore \
238 libOmxEvrcEnc \
239 libOmxQcelp13Enc \
240 libOmxSwVencMpeg4 \
241 libOmxVdec \
242 libOmxVdecHevc \
243 libOmxVenc \
244 libOmxVidEnc \
245 libOmxVdpp \
246 libstagefrighthw \
247 qcmediaplayer
248
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400249# Permissions
250PRODUCT_COPY_FILES += \
251 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
252 frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
253 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
254 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
255 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
256 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
257 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
258 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
259 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
260 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
261 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
262 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
263 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
264 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
265 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
266 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
267 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
268 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
269 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
270 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
271 frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
272 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
273 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
274
275# Power HAL
276PRODUCT_PACKAGES += \
277 power.msm8916
278
279# Prebuilt
280PRODUCT_COPY_FILES += \
281 $(LOCAL_PATH)/prebuilt/dsi_config.xml:system/etc/data/dsi_config.xml \
282 $(LOCAL_PATH)/prebuilt/netmgr_config.xml:system/etc/data/netmgr_config.xml \
283 $(LOCAL_PATH)/prebuilt/qmi_config.xml:system/etc/data/qmi_config.xml
284
285# Properties
286PRODUCT_PROPERTY_OVERRIDES += \
287 ro.use_data_netmgrd=false \
288 dalvik.vm.heapgrowthlimit=128m \
289 ro.security.icd.flagmode=single \
290 ro.vendor.extension_library=libqti-perfd-client.so \
291 persist.radio.apm_sim_not_pwdn=1 \
292 persist.gps.qc_nlp_in_use=1 \
293 persist.loc.nlp_name=com.qualcomm.location \
294 ro.gps.agps_provider=1 \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400295 ro.pip.gated=0 \
296 ro.product.model=SM-G530W \
297 ro.product.device=gprimeltecan
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400298
299# Ril
300PRODUCT_PACKAGES += \
301 libxml2
302
303# Screen density
304PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
305PRODUCT_AAPT_PREF_CONFIG := xhdpi
306
307# security config
308PRODUCT_COPY_FILES += \
309 $(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
Zvikomborero VIncent Zvikarambae0afd272016-07-26 06:09:04 -0400310
Zvikomborero VIncent Zvikaramba52830262016-07-26 06:16:40 -0400311# ril switch script files
Zvikomborero VIncent Zvikarambae0afd272016-07-26 06:09:04 -0400312PRODUCT_COPY_FILES += \
Zvikomborero VIncent Zvikaramba52830262016-07-26 06:16:40 -0400313 $(LOCAL_PATH)/scripts/rilswitch.sh:system/bin/rilswitch.sh \
314 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/libreference-ril.so:system/rilswitch/caf/lib/libreference-ril.so \
315 $(LOCAL_PATH)/scripts/rilswitch/caf/bin/rild:system/rilswitch/caf/bin/rild \
316 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/libril.so:system/rilswitch/caf/lib/libril.so \
317 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/librilutils.so:system/rilswitch/caf/lib/librilutils.so
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400318
319# Terminal
320PRODUCT_PACKAGES += Terminal
321
322# USB
323PRODUCT_PACKAGES += \
324 com.android.future.usb.accessory
325
Zvikomborero VIncent Zvikarambadd71aff2016-07-29 01:58:21 -0400326# Wifi configuration files
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400327PRODUCT_COPY_FILES += \
328 $(LOCAL_PATH)/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
329 $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
330 $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
331 $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
332 $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
333 $(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 -0400334
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400335PRODUCT_PACKAGES += \
336 hostapd \
337 hostapd_cli \
338 libQWiFiSoftApCfg \
339 libqsap_sdk \
340 libwpa_client \
341 wcnss_service \
342 wpa_supplicant
343
344# Inhert dalvik heap values from aosp
345$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)