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