blob: bf9b2b731d498002afaa08b8f9201264de546915 [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 \
65 ims-common
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040066
67# Audio configuration
68PRODUCT_COPY_FILES += \
69 $(LOCAL_PATH)/audio/Bluetooth_cal.acdb:system/etc/Bluetooth_cal.acdb \
70 $(LOCAL_PATH)/audio/General_cal.acdb:system/etc/General_cal.acdb \
71 $(LOCAL_PATH)/audio/Global_cal.acdb:system/etc/Global_cal.acdb \
72 $(LOCAL_PATH)/audio/Handset_cal.acdb:system/etc/Handset_cal.acdb \
73 $(LOCAL_PATH)/audio/Hdmi_cal.acdb:system/etc/Hdmi_cal.acdb \
74 $(LOCAL_PATH)/audio/Headset_cal.acdb:system/etc/Headset_cal.acdb \
75 $(LOCAL_PATH)/audio/Speaker_cal.acdb:system/etc/Speaker_cal.acdb \
76 $(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
77 $(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
78 $(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml
79
80# Boot jars
81PRODUCT_BOOT_JARS += \
82 qcom.fmradio \
Zvikomborero VIncent Zvikaramba9d7f8d32016-07-25 22:03:29 -040083 tcmiface
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040084
Zvikomborero VIncent Zvikaramba9d7f8d32016-07-25 22:03:29 -040085# qcmediaplayer
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040086# oem-services \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040087
88# Connectivity Engine support
89PRODUCT_PACKAGES += \
90 libcnefeatureconfig
91
Zvikomborero VIncent Zvikarambaebdf85d2016-07-25 03:16:14 -040092#Camera
93PRODUCT_PACKAGES += \
94 camera.msm8916
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040095
96#SAMSUNG RIL
Zvikomborero VIncent Zvikarambad7699372016-07-26 02:41:07 -040097#PRODUCT_PACKAGES += \
98# libsecril-client
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040099
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400100# Display
101PRODUCT_PACKAGES += \
102 copybit.msm8916 \
103 gralloc.msm8916 \
104 hwcomposer.msm8916 \
105 libtinyxml \
106 memtrack.msm8916
107
108# Ebtables
109PRODUCT_PACKAGES += \
110 ebtables \
111 ethertypes \
112 libebtc
113
114# FM
115PRODUCT_PACKAGES += \
116# FM2 \
117# FMRecord \
118 libqcomfm_jni \
119 qcom.fmradio
120
121# INIT
122PRODUCT_PACKAGES += \
123 fstab.qcom \
124 init.carrier.rc \
125 init.class_main.sh \
126 init.mdm.sh \
127 init.qcom.bms.sh \
128 init.qcom.class_core.sh \
129 init.qcom.early_boot.sh \
130 init.qcom.factory.sh \
131 init.qcom.syspart_fixup.sh \
132 init.qcom.usb.rc \
133 init.qcom.usb.sh \
134 init.qcom.rc \
135 init.qcom.sh \
136 init.target.rc \
137 ueventd.qcom.rc \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400138 init.qcom.zram.sh \
139 init.rilchip.rc \
140 init.rilcommon.rc \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400141 twrp.fstab
142
143# Keylayout
144PRODUCT_COPY_FILES += \
145 $(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl \
146 $(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
147 $(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \
148 $(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl
149
150# Keystore
151PRODUCT_PACKAGES += \
152 keystore.msm8916
153
154# libhealthd.qcom
155PRODUCT_PACKAGES += \
156 libhealthd
157
158# Lights
159PRODUCT_PACKAGES += \
160 lights.msm8916
161
162# Live Wallpapers
163PRODUCT_PACKAGES += \
164 librs_jni
165
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400166# USB
167PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400168 persist.sys.usb.config=mtp \
169 telephony.lteOnCdmaDevice=0 \
170 persist.eons.enabled=true \
171 persist.radio.apm_sim_not_pwdn=1 \
172 persist.radio.rilversion=8 \
173 rild.libpath=/system/lib/libsec-ril.so \
174 persist.cne.feature=0 \
175 persist.radio.lte_vrte_ltd=1 \
176 persist.radio.add_power_save=1 \
177 camera2.portability.force_api=1
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400178
Zvikomborero VIncent Zvikaramba35c03342016-07-24 20:35:44 -0400179# GPS
Zvikomborero VIncent Zvikarambaea469272016-07-26 05:26:49 -0400180#PRODUCT_PACKAGES += \
181# gps.default \
182# libloc_core \
183# libgps.utils \
184# libloc_eng \
185# libloc_api_v02
Zvikomborero VIncent Zvikaramba1ceb0d22016-07-22 13:01:44 -0400186
187#Sensors
188PRODUCT_PACKAGES += \
189 sensors.default
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400190
191PRODUCT_COPY_FILES += \
192 $(LOCAL_PATH)/gps/flp.conf:system/etc/flp.conf \
193 $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
194 $(LOCAL_PATH)/gps/izat.conf:system/etc/izat.conf \
195 $(LOCAL_PATH)/gps/sap.conf:system/etc/sap.conf
196
197# macloader
198PRODUCT_PACKAGES += macloader
199
200# Media
201PRODUCT_COPY_FILES += \
202 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
203 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
204 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 -0400205 $(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
206 $(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml
207
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400208# frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml \
209
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400210# MSM IRQ Balancer configuration file
211PRODUCT_COPY_FILES += \
212 $(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
213
214# Misc
215PRODUCT_PACKAGES += \
216 curl \
217 libbson \
218 libcurl \
219 tcpdump
220
221# OMX
222PRODUCT_PACKAGES += \
223 libdashplayer \
224 libdivxdrmdecrypt \
225 libmm-omxcore \
226 libOmxAacEnc \
227 libOmxAmrEnc \
228 libOmxCore \
229 libOmxEvrcEnc \
230 libOmxQcelp13Enc \
231 libOmxSwVencMpeg4 \
232 libOmxVdec \
233 libOmxVdecHevc \
234 libOmxVenc \
235 libOmxVidEnc \
236 libOmxVdpp \
237 libstagefrighthw \
238 qcmediaplayer
239
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400240# Permissions
241PRODUCT_COPY_FILES += \
242 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
243 frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
244 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
245 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
246 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
247 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
248 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
249 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
250 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
251 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
252 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
253 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
254 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
255 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
256 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
257 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
258 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
259 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
260 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
261 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
262 frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
263 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
264 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
265
266# Power HAL
267PRODUCT_PACKAGES += \
268 power.msm8916
269
270# Prebuilt
271PRODUCT_COPY_FILES += \
272 $(LOCAL_PATH)/prebuilt/dsi_config.xml:system/etc/data/dsi_config.xml \
273 $(LOCAL_PATH)/prebuilt/netmgr_config.xml:system/etc/data/netmgr_config.xml \
274 $(LOCAL_PATH)/prebuilt/qmi_config.xml:system/etc/data/qmi_config.xml
275
276# Properties
277PRODUCT_PROPERTY_OVERRIDES += \
278 ro.use_data_netmgrd=false \
279 dalvik.vm.heapgrowthlimit=128m \
280 ro.security.icd.flagmode=single \
281 ro.vendor.extension_library=libqti-perfd-client.so \
282 persist.radio.apm_sim_not_pwdn=1 \
283 persist.gps.qc_nlp_in_use=1 \
284 persist.loc.nlp_name=com.qualcomm.location \
285 ro.gps.agps_provider=1 \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400286 ro.pip.gated=0 \
287 ro.product.model=SM-G530W \
288 ro.product.device=gprimeltecan
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400289
290# Ril
291PRODUCT_PACKAGES += \
292 libxml2
293
294# Screen density
295PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
296PRODUCT_AAPT_PREF_CONFIG := xhdpi
297
298# security config
299PRODUCT_COPY_FILES += \
300 $(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
Zvikomborero VIncent Zvikarambae0afd272016-07-26 06:09:04 -0400301
Zvikomborero VIncent Zvikaramba52830262016-07-26 06:16:40 -0400302# ril switch script files
Zvikomborero VIncent Zvikarambae0afd272016-07-26 06:09:04 -0400303PRODUCT_COPY_FILES += \
Zvikomborero VIncent Zvikaramba52830262016-07-26 06:16:40 -0400304 $(LOCAL_PATH)/scripts/rilswitch.sh:system/bin/rilswitch.sh \
305 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/libreference-ril.so:system/rilswitch/caf/lib/libreference-ril.so \
306 $(LOCAL_PATH)/scripts/rilswitch/caf/bin/rild:system/rilswitch/caf/bin/rild \
307 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/libril.so:system/rilswitch/caf/lib/libril.so \
308 $(LOCAL_PATH)/scripts/rilswitch/caf/lib/librilutils.so:system/rilswitch/caf/lib/librilutils.so
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400309
310# Terminal
311PRODUCT_PACKAGES += Terminal
312
313# USB
314PRODUCT_PACKAGES += \
315 com.android.future.usb.accessory
316
317# Wifi
318PRODUCT_COPY_FILES += \
319 $(LOCAL_PATH)/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
320 $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
321 $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
322 $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
323 $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
324 $(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 -0400325
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400326PRODUCT_PACKAGES += \
327 hostapd \
328 hostapd_cli \
329 libQWiFiSoftApCfg \
330 libqsap_sdk \
331 libwpa_client \
332 wcnss_service \
333 wpa_supplicant
334
335# Inhert dalvik heap values from aosp
336$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)