blob: 1cd945dbf2c5b3e60d1679679505c5478f75a960 [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
11# Common overlay
12DEVICE_PACKAGE_OVERLAYS += device/samsung/gprimeltecan/overlay
13
14ifeq ($(TARGET_PREBUILT_KERNEL),)
15 LOCAL_KERNEL := device/samsung/gprimeltecan/kernel
16else
17 LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
18endif
19
20PRODUCT_COPY_FILES += \
21 $(LOCAL_KERNEL):kernel
22
23#Android EGL implementation
24PRODUCT_PACKAGES += libGLES_android
25
26PRODUCT_PACKAGES += libtime_genoff
27
28# ANT+
29PRODUCT_PACKAGES += \
30 AntHalService \
31 antradio_app \
32 com.dsi.ant.antradio_library \
33 libantradio
34
Zvikomborero VIncent Zvikarambab05eac12016-07-21 22:26:10 -040035#NFC
36PRODUCT_PACKAGES += \
37 libnfc-nci \
38 libnfc_nci_jni \
39 nfc_nci.msm8916 \
40 NfcNci \
41 Tag \
42 com.android.nfc_extras
43
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040044# Audio
45PRODUCT_PACKAGES += \
46 audio.a2dp.default \
47 audio.primary.msm8916 \
48 audio.r_submix.default \
49 audio.usb.default \
50 audiod \
51 libaudio-resampler \
52 libqcompostprocbundle \
53 libqcomvisualizer \
54 libqcomvoiceprocessing \
55 tinymix
56
57# Audio configuration
58PRODUCT_COPY_FILES += \
59 $(LOCAL_PATH)/audio/Bluetooth_cal.acdb:system/etc/Bluetooth_cal.acdb \
60 $(LOCAL_PATH)/audio/General_cal.acdb:system/etc/General_cal.acdb \
61 $(LOCAL_PATH)/audio/Global_cal.acdb:system/etc/Global_cal.acdb \
62 $(LOCAL_PATH)/audio/Handset_cal.acdb:system/etc/Handset_cal.acdb \
63 $(LOCAL_PATH)/audio/Hdmi_cal.acdb:system/etc/Hdmi_cal.acdb \
64 $(LOCAL_PATH)/audio/Headset_cal.acdb:system/etc/Headset_cal.acdb \
65 $(LOCAL_PATH)/audio/Speaker_cal.acdb:system/etc/Speaker_cal.acdb \
66 $(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
67 $(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
68 $(LOCAL_PATH)/audio/mixer_paths.xml:system/etc/mixer_paths.xml
69
70# Boot jars
71PRODUCT_BOOT_JARS += \
72 qcom.fmradio \
73# oem-services \
74 tcmiface \
75 qcmediaplayer
76
77# Connectivity Engine support
78PRODUCT_PACKAGES += \
79 libcnefeatureconfig
80
81# Display
82PRODUCT_PACKAGES += \
83 copybit.msm8916 \
84 gralloc.msm8916 \
85 hwcomposer.msm8916 \
86 libtinyxml \
87 memtrack.msm8916
88
89# Ebtables
90PRODUCT_PACKAGES += \
91 ebtables \
92 ethertypes \
93 libebtc
94
95# FM
96PRODUCT_PACKAGES += \
97# FM2 \
98# FMRecord \
99 libqcomfm_jni \
100 qcom.fmradio
101
102# INIT
103PRODUCT_PACKAGES += \
104 fstab.qcom \
105 init.carrier.rc \
106 init.class_main.sh \
107 init.mdm.sh \
108 init.qcom.bms.sh \
109 init.qcom.class_core.sh \
110 init.qcom.early_boot.sh \
111 init.qcom.factory.sh \
112 init.qcom.syspart_fixup.sh \
113 init.qcom.usb.rc \
114 init.qcom.usb.sh \
115 init.qcom.rc \
116 init.qcom.sh \
117 init.target.rc \
118 ueventd.qcom.rc \
119 twrp.fstab
120
121# Keylayout
122PRODUCT_COPY_FILES += \
123 $(LOCAL_PATH)/keylayout/ft5x06_ts.kl:system/usr/keylayout/ft5x06_ts.kl \
124 $(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
125 $(LOCAL_PATH)/keylayout/synaptics_dsx.kl:system/usr/keylayout/synaptics_dsx.kl \
126 $(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl
127
128# Keystore
129PRODUCT_PACKAGES += \
130 keystore.msm8916
131
132# libhealthd.qcom
133PRODUCT_PACKAGES += \
134 libhealthd
135
136# Lights
137PRODUCT_PACKAGES += \
138 lights.msm8916
139
140# Live Wallpapers
141PRODUCT_PACKAGES += \
142 librs_jni
143
144# GPS
145PRODUCT_PACKAGES += \
Zvikomborero VIncent Zvikarambab05eac12016-07-21 22:26:10 -0400146 gps.msm8916 \
147 gps.default
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -0400148
149PRODUCT_COPY_FILES += \
150 $(LOCAL_PATH)/gps/flp.conf:system/etc/flp.conf \
151 $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
152 $(LOCAL_PATH)/gps/izat.conf:system/etc/izat.conf \
153 $(LOCAL_PATH)/gps/sap.conf:system/etc/sap.conf
154
155# macloader
156PRODUCT_PACKAGES += macloader
157
158# Media
159PRODUCT_COPY_FILES += \
160 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
161 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
162 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
163# frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml \
164 $(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
165 $(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml
166
167# MSM IRQ Balancer configuration file
168PRODUCT_COPY_FILES += \
169 $(LOCAL_PATH)/configs/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
170
171# Misc
172PRODUCT_PACKAGES += \
173 curl \
174 libbson \
175 libcurl \
176 tcpdump
177
178# OMX
179PRODUCT_PACKAGES += \
180 libdashplayer \
181 libdivxdrmdecrypt \
182 libmm-omxcore \
183 libOmxAacEnc \
184 libOmxAmrEnc \
185 libOmxCore \
186 libOmxEvrcEnc \
187 libOmxQcelp13Enc \
188 libOmxSwVencMpeg4 \
189 libOmxVdec \
190 libOmxVdecHevc \
191 libOmxVenc \
192 libOmxVidEnc \
193 libOmxVdpp \
194 libstagefrighthw \
195 qcmediaplayer
196
197# Overlay
198DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
199
200# Permissions
201PRODUCT_COPY_FILES += \
202 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
203 frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
204 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
205 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
206 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
207 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
208 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
209 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
210 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
211 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
212 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
213 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
214 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
215 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
216 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
217 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
218 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
219 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
220 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
221 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
222 frameworks/native/data/etc/android.software.print.xml:system/etc/permissions/android.software.print.xml \
223 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
224 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
225
226# Power HAL
227PRODUCT_PACKAGES += \
228 power.msm8916
229
230# Prebuilt
231PRODUCT_COPY_FILES += \
232 $(LOCAL_PATH)/prebuilt/dsi_config.xml:system/etc/data/dsi_config.xml \
233 $(LOCAL_PATH)/prebuilt/netmgr_config.xml:system/etc/data/netmgr_config.xml \
234 $(LOCAL_PATH)/prebuilt/qmi_config.xml:system/etc/data/qmi_config.xml
235
236# Properties
237PRODUCT_PROPERTY_OVERRIDES += \
238 ro.use_data_netmgrd=false \
239 dalvik.vm.heapgrowthlimit=128m \
240 ro.security.icd.flagmode=single \
241 ro.vendor.extension_library=libqti-perfd-client.so \
242 persist.radio.apm_sim_not_pwdn=1 \
243 persist.gps.qc_nlp_in_use=1 \
244 persist.loc.nlp_name=com.qualcomm.location \
245 ro.gps.agps_provider=1 \
246 ro.pip.gated=0
247
248# Ril
249PRODUCT_PACKAGES += \
250 libxml2
251
252# Screen density
253PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
254PRODUCT_AAPT_PREF_CONFIG := xhdpi
255
256# security config
257PRODUCT_COPY_FILES += \
258 $(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
259
260# Terminal
261PRODUCT_PACKAGES += Terminal
262
263# USB
264PRODUCT_PACKAGES += \
265 com.android.future.usb.accessory
266
267# Wifi
268PRODUCT_COPY_FILES += \
269 $(LOCAL_PATH)/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
270 $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
271 $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
272 $(LOCAL_PATH)/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
273 $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
274 $(LOCAL_PATH)/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
275
276PRODUCT_PACKAGES += \
277 hostapd \
278 hostapd_cli \
279 libQWiFiSoftApCfg \
280 libqsap_sdk \
281 libwpa_client \
282 wcnss_service \
283 wpa_supplicant
284
285# Inhert dalvik heap values from aosp
286$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)