blob: 0856008866886021fdecb0adc3f067a5ae66cf31 [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 Zvikarambaeadeb142016-07-25 20:00:40 -040040 NfcNci \
Zvikomborero VIncent Zvikaramba02e33332016-07-22 00:44:22 -040041 com.android.nfc_extras \
42 com.android.nfc.helper
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040043
44# 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 Zvikarambaa25011a2016-07-21 16:32:35 -040077 tcmiface \
78 qcmediaplayer
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -040079
80# 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
91PRODUCT_PACKAGES += \
92 libsecril-client
93
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 \
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400134 init.qcom.rilswitch.sh \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400135 init.rilcommon.rc \
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400136 twrp.fstab
137
138# Keylayout
139PRODUCT_COPY_FILES += \
140 $(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl \
141 $(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
142 $(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \
143 $(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl
144
145# Keystore
146PRODUCT_PACKAGES += \
147 keystore.msm8916
148
149# libhealthd.qcom
150PRODUCT_PACKAGES += \
151 libhealthd
152
153# Lights
154PRODUCT_PACKAGES += \
155 lights.msm8916
156
157# Live Wallpapers
158PRODUCT_PACKAGES += \
159 librs_jni
160
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400161# USB
162PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400163 persist.sys.usb.config=mtp \
164 telephony.lteOnCdmaDevice=0 \
165 persist.eons.enabled=true \
166 persist.radio.apm_sim_not_pwdn=1 \
167 persist.radio.rilversion=8 \
168 rild.libpath=/system/lib/libsec-ril.so \
169 persist.cne.feature=0 \
170 persist.radio.lte_vrte_ltd=1 \
171 persist.radio.add_power_save=1 \
172 camera2.portability.force_api=1
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400173
Zvikomborero VIncent Zvikaramba35c03342016-07-24 20:35:44 -0400174# GPS
175PRODUCT_PACKAGES += \
Zvikomborero VIncent Zvikaramba35c03342016-07-24 20:35:44 -0400176 gps.default \
177 libloc_core \
178 libgps.utils \
179 libloc_eng \
180 libloc_api_v02
Zvikomborero VIncent Zvikaramba1ceb0d22016-07-22 13:01:44 -0400181
182#Sensors
183PRODUCT_PACKAGES += \
184 sensors.default
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400185
186PRODUCT_COPY_FILES += \
187 $(LOCAL_PATH)/gps/flp.conf:system/etc/flp.conf \
188 $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
189 $(LOCAL_PATH)/gps/izat.conf:system/etc/izat.conf \
190 $(LOCAL_PATH)/gps/sap.conf:system/etc/sap.conf
191
192# macloader
193PRODUCT_PACKAGES += macloader
194
195# Media
196PRODUCT_COPY_FILES += \
197 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
198 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
199 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 -0400200 $(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
201 $(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml
202
Zvikomborero VIncent Zvikarambaeadeb142016-07-25 20:00:40 -0400203# frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml \
204
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400205# MSM IRQ Balancer configuration file
206PRODUCT_COPY_FILES += \
207 $(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
208
209# Misc
210PRODUCT_PACKAGES += \
211 curl \
212 libbson \
213 libcurl \
214 tcpdump
215
216# OMX
217PRODUCT_PACKAGES += \
218 libdashplayer \
219 libdivxdrmdecrypt \
220 libmm-omxcore \
221 libOmxAacEnc \
222 libOmxAmrEnc \
223 libOmxCore \
224 libOmxEvrcEnc \
225 libOmxQcelp13Enc \
226 libOmxSwVencMpeg4 \
227 libOmxVdec \
228 libOmxVdecHevc \
229 libOmxVenc \
230 libOmxVidEnc \
231 libOmxVdpp \
232 libstagefrighthw \
233 qcmediaplayer
234
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400235# Permissions
236PRODUCT_COPY_FILES += \
237 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
238 frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
239 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
240 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
241 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
242 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
243 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
244 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
245 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
246 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
247 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
248 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
249 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
250 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
251 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
252 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
253 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
254 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
255 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
256 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
257 frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
258 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
259 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
260
261# Power HAL
262PRODUCT_PACKAGES += \
263 power.msm8916
264
265# Prebuilt
266PRODUCT_COPY_FILES += \
267 $(LOCAL_PATH)/prebuilt/dsi_config.xml:system/etc/data/dsi_config.xml \
268 $(LOCAL_PATH)/prebuilt/netmgr_config.xml:system/etc/data/netmgr_config.xml \
269 $(LOCAL_PATH)/prebuilt/qmi_config.xml:system/etc/data/qmi_config.xml
270
271# Properties
272PRODUCT_PROPERTY_OVERRIDES += \
273 ro.use_data_netmgrd=false \
274 dalvik.vm.heapgrowthlimit=128m \
275 ro.security.icd.flagmode=single \
276 ro.vendor.extension_library=libqti-perfd-client.so \
277 persist.radio.apm_sim_not_pwdn=1 \
278 persist.gps.qc_nlp_in_use=1 \
279 persist.loc.nlp_name=com.qualcomm.location \
280 ro.gps.agps_provider=1 \
Zvikomborero VIncent Zvikaramba8a1a1472016-07-25 00:45:07 -0400281 ro.pip.gated=0 \
282 ro.product.model=SM-G530W \
283 ro.product.device=gprimeltecan
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400284
285# Ril
286PRODUCT_PACKAGES += \
287 libxml2
288
289# Screen density
290PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
291PRODUCT_AAPT_PREF_CONFIG := xhdpi
292
293# security config
294PRODUCT_COPY_FILES += \
295 $(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
296
297# Terminal
298PRODUCT_PACKAGES += Terminal
299
300# USB
301PRODUCT_PACKAGES += \
302 com.android.future.usb.accessory
303
304# Wifi
305PRODUCT_COPY_FILES += \
306 $(LOCAL_PATH)/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
307 $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
308 $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
309 $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
310 $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
311 $(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 -0400312
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400313PRODUCT_PACKAGES += \
314 hostapd \
315 hostapd_cli \
316 libQWiFiSoftApCfg \
317 libqsap_sdk \
318 libwpa_client \
319 wcnss_service \
320 wpa_supplicant
321
322# Inhert dalvik heap values from aosp
323$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)