blob: 846fc2fa83078b0047740133f5f815583c27963d [file] [log] [blame]
Hyejin Kim4344bc02015-03-04 18:46:10 +09001#
2# Copyright (C) 2015 The Android Open-Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# This file includes all definitions that apply to ALL bullhead devices, and
18# are also specific to bullhead devices
19#
20# Everything in this directory will become public
21
22
23ifeq ($(TARGET_PREBUILT_KERNEL),)
Patrick Tjin2a886152015-04-17 07:54:16 -070024LOCAL_KERNEL := device/lge/bullhead-kernel/Image.gz-dtb
Hyejin Kim4344bc02015-03-04 18:46:10 +090025else
26LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
27endif
28
29PRODUCT_COPY_FILES := \
30 $(LOCAL_KERNEL):kernel
31
32PRODUCT_COPY_FILES += \
33 device/lge/bullhead/init.bullhead.rc:root/init.bullhead.rc \
Hyejin Kim66283e22015-03-05 15:01:02 +090034 device/lge/bullhead/init.bullhead.usb.rc:root/init.bullhead.usb.rc \
Sungmin Choic2f912b2015-04-08 17:43:35 -070035 device/lge/bullhead/init.bullhead.power.rc:root/init.bullhead.power.rc \
Hyejin Kim4344bc02015-03-04 18:46:10 +090036 device/lge/bullhead/fstab.bullhead:root/fstab.bullhead \
Vineeta Srivastavacec9bdb2015-04-14 22:10:30 -070037 device/lge/bullhead/ueventd.bullhead.rc:root/ueventd.bullhead.rc \
Thierry Strudel16e5ac72015-05-14 15:25:21 -070038 device/lge/bullhead/init.bullhead.sensorhub.rc:root/init.bullhead.sensorhub.rc \
Vineeta Srivastavacec9bdb2015-04-14 22:10:30 -070039 device/lge/bullhead/init.bullhead.fp.rc:root/init.bullhead.fp.rc
Hyejin Kim4344bc02015-03-04 18:46:10 +090040
Hyejin Kim07633322015-03-09 17:25:27 +090041PRODUCT_COPY_FILES += \
42 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
43 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
44 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
Sungmin Choi571183f2015-05-21 13:28:30 +090045 device/lge/bullhead/media_codecs.xml:system/etc/media_codecs.xml \
46 device/lge/bullhead/media_profiles.xml:system/etc/media_profiles.xml
Hyejin Kim07633322015-03-09 17:25:27 +090047
donghun2.kim5cc57112015-03-19 21:03:02 +090048# Audio
49PRODUCT_COPY_FILES += \
50 device/lge/bullhead/audio_policy.conf:system/etc/audio_policy.conf \
donghun2.kim7f7a93f2015-06-11 09:44:10 +090051 device/lge/bullhead/audio_effects.conf:vendor/etc/audio_effects.conf \
keunhui.park2972bf92015-06-04 15:40:27 +090052 device/lge/bullhead/mixer_paths.xml:system/etc/mixer_paths.xml \
53 device/lge/bullhead/audio_platform_info.xml:system/etc/audio_platform_info.xml
donghun2.kim5cc57112015-03-19 21:03:02 +090054
Vineeta Srivastava69566b12015-05-13 08:56:25 -070055#Sound Trigger
56PRODUCT_COPY_FILES += \
57 device/lge/bullhead/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
58 device/lge/bullhead/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml
59
Hyejin Kime68e4642015-03-07 11:44:49 +090060# Input device files
61PRODUCT_COPY_FILES += \
62 device/lge/bullhead/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
63 device/lge/bullhead/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl
64
Ramanan Rajeswaran49754a62015-06-05 10:49:28 -070065# for launcher layout
66PRODUCT_PACKAGES += \
67 BullheadLayout
68
69# Delegation for OEM customization
70PRODUCT_OEM_PROPERTIES := \
71 ro.config.ringtone \
72 ro.config.notification_sound \
73 ro.config.alarm_alert \
74 ro.config.wallpaper \
75 ro.config.wallpaper_component \
76 ro.oem.* \
77 oem.*
78
Hyejin Kime68e4642015-03-07 11:44:49 +090079# Prebuilt input device calibration files
80PRODUCT_COPY_FILES += \
81 device/lge/bullhead/touch_dev.idc:system/usr/idc/touch_dev.idc
82
Hyejin Kim4344bc02015-03-04 18:46:10 +090083# These are the hardware-specific features
84PRODUCT_COPY_FILES += \
Patrick Tjin6a7f9612015-04-14 20:25:11 -070085 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
86 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
Hyejin Kim8eaa6ea2015-03-06 18:43:25 +090087 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
88 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
89 frameworks/native/data/etc/android.hardware.camera.full.xml:system/etc/permissions/android.hardware.camera.full.xml \
90 frameworks/native/data/etc/android.hardware.camera.raw.xml:system/etc/permissions/android.hardware.camera.raw.xml \
91 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
92 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
93 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
94 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
95 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
96 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
97 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
98 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
99 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
100 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
101 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
102 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
103 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
104 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
105 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
106 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
Thierry Strudel058bafa2015-05-12 14:34:23 -0700107 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
108 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
Sungmin Choi71cc5b12015-05-18 20:02:25 +0900109 frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
110 frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml
Hyejin Kim4344bc02015-03-04 18:46:10 +0900111
Hyejin Kim82a5a9b2015-03-11 17:21:45 +0900112# For SPN display
113PRODUCT_COPY_FILES += \
114 device/lge/bullhead/spn-conf.xml:system/etc/spn-conf.xml
115
Hyejin Kimc15ba1c2015-03-26 20:15:10 +0900116# For GPS
117PRODUCT_COPY_FILES += \
118 device/lge/bullhead/sec_config:system/etc/sec_config
119
Thierry Strudelf9621af2015-05-07 23:25:21 -0700120# NFC config files
121PRODUCT_COPY_FILES += \
122 device/lge/bullhead/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
123 device/lge/bullhead/nfc/libnfc-nxp.conf:system/etc/libnfc-nxp.conf
124
Sungmin Choi29696422015-03-27 18:49:11 +0900125# For WiFi
126PRODUCT_COPY_FILES += \
127 device/lge/bullhead/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
128 device/lge/bullhead/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
129 device/lge/bullhead/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat \
130 device/lge/bullhead/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini
131
Sungmin Choi0ce9c712015-04-22 10:44:52 +0900132# MSM IRQ Balancer configuration file
133PRODUCT_COPY_FILES += \
Sungmin Choi8f67d4d2015-04-06 16:24:01 -0700134 device/lge/bullhead/msm_irqbalance.conf:vendor/etc/msm_irqbalance.conf
Sungmin Choi0ce9c712015-04-22 10:44:52 +0900135
Thierry Strudela42e7ac2015-06-03 17:14:28 -0700136# Power configuration file
137PRODUCT_COPY_FILES += \
138 device/lge/bullhead/init.bullhead.power.sh:system/bin/init.bullhead.power.sh
139
Hyejin Kim4344bc02015-03-04 18:46:10 +0900140PRODUCT_TAGS += dalvik.gc.type-precise
141
142PRODUCT_AAPT_CONFIG := normal
Sungmin Choia866ad12015-03-21 13:18:59 +0900143PRODUCT_AAPT_PREF_CONFIG := xxhdpi
Hyejin Kim4344bc02015-03-04 18:46:10 +0900144
145PRODUCT_CHARACTERISTICS := nosdcard
146
Sungmin Choi9fc39862015-03-14 10:44:36 +0900147# for off charging mode
148PRODUCT_PACKAGES += \
149 charger_res_images
150
Hyejin Kime58fd8c2015-03-06 14:42:06 +0900151PRODUCT_PACKAGES += \
152 gralloc.msm8992 \
153 hwcomposer.msm8992 \
154 libgenlock \
soyoung.minb63ab6e2015-03-17 14:21:23 -0500155 memtrack.msm8992 \
156 lights.bullhead
Hyejin Kime58fd8c2015-03-06 14:42:06 +0900157
donghun2.kim5cc57112015-03-19 21:03:02 +0900158PRODUCT_PACKAGES += \
Sungmin Choibc9e50f2015-04-30 11:41:21 +0900159 libc2dcolorconvert \
160 libstagefrighthw \
161 libOmxCore \
162 libmm-omxcore \
163 libOmxVdec \
164 libOmxVdecHevc \
165 libOmxVenc
166
167PRODUCT_PACKAGES += \
donghun2.kim5cc57112015-03-19 21:03:02 +0900168 audio.primary.msm8992 \
169 audio.a2dp.default \
170 audio.usb.default \
171 audio.r_submix.default \
donghun2.kim7f7a93f2015-06-11 09:44:10 +0900172 libaudio-resampler \
173 libqcomvoiceprocessing \
174 libqcomvisualizer \
175 libqcompostprocbundle
176
donghun2.kim5cc57112015-03-19 21:03:02 +0900177
Sungmin Choie9cbfdc2015-03-28 11:55:35 +0900178PRODUCT_PACKAGES += \
179 librmnetctl \
180 rmnetcli
181
seulgi.kim5e3e9b12015-03-31 15:17:20 +0900182# GPS module
183PRODUCT_PACKAGES += \
184 libgps.utils \
185 libloc_core \
186 libloc_eng \
187 libloc_api_v02 \
188 gps.msm8992
189
190# GPS configuration
191PRODUCT_COPY_FILES += \
192 device/lge/bullhead/gps.conf:system/etc/gps.conf
193
Thierry Strudel058bafa2015-05-12 14:34:23 -0700194# NFC packages
195PRODUCT_PACKAGES += \
Thierry Strudelf9621af2015-05-07 23:25:21 -0700196 nfc_nci.bullhead \
Thierry Strudel058bafa2015-05-12 14:34:23 -0700197 NfcNci \
198 Tag
199
Vineeta Srivastava12ba7482015-04-27 22:26:31 -0700200# Fingerprint Sensor
201PRODUCT_PACKAGES += \
202 fingerprint.bullhead
203
Sungmin Choi29696422015-03-27 18:49:11 +0900204# Wi-Fi
205PRODUCT_PACKAGES += \
206 libwpa_client \
207 hostapd \
208 dhcpcd.conf \
209 wpa_supplicant \
210 wpa_supplicant.conf
211
Sungmin Choi4db6ad62015-05-06 16:44:18 +0900212# Camera
213PRODUCT_PACKAGES += \
214 camera.msm8992 \
215 libcamera \
216 libmmcamera_interface \
217 libmmcamera_interface2 \
218 libmmjpeg_interface \
219 libqomx_core \
220 mm-qcamera-app
221
Thierry Strudel16e5ac72015-05-14 15:25:21 -0700222# Sensor & activity_recognition HAL
223PRODUCT_PACKAGES += \
224 sensors.bullhead \
225 activity_recognition.bullhead \
226 sensortool.bullhead
227
Sungmin Choia38ab542015-06-02 01:30:59 -0700228PRODUCT_PACKAGES += \
229 keystore.msm8992 \
230 gatekeeper.msm8992
231
Vineeta Srivastava9e62d512015-06-08 15:08:15 -0700232# Verified boot
233PRODUCT_PACKAGES += \
234 slideshow \
235 verity_warning_images
236
Tom Cherry8554f912015-06-04 14:42:23 -0700237# For android_filesystem_config.h
238PRODUCT_PACKAGES += \
239 fs_config_files
240
Hyejin Kim4344bc02015-03-04 18:46:10 +0900241DEVICE_PACKAGE_OVERLAYS := \
242 device/lge/bullhead/overlay
243
Sungmin Choif7b0ae72015-05-16 19:45:05 +0900244# Enable AAC 5.1 output
245PRODUCT_PROPERTY_OVERRIDES += \
246 media.aac_51_output_enabled=true
247
keunhui.park2972bf92015-06-04 15:40:27 +0900248# Audio
249PRODUCT_PROPERTY_OVERRIDES += \
250 persist.audio.dualmic.config=endfire \
251 persist.audio.fluence.voicecall=true \
252 persist.audio.fluence.voicecomm=true \
253 persist.audio.fluence.voicerec=false \
254 persist.audio.fluence.speaker=true \
255 persist.speaker.prot.enable=true
256
Hyejin Kim4344bc02015-03-04 18:46:10 +0900257PRODUCT_PROPERTY_OVERRIDES += \
Sungmin Choi29696422015-03-27 18:49:11 +0900258 wifi.interface=wlan0 \
259 wifi.supplicant_scan_interval=15
260
261PRODUCT_PROPERTY_OVERRIDES += \
Sungmin Choic56c6172015-03-09 08:51:41 +0900262 ro.opengles.version=196609
Hyejin Kim4344bc02015-03-04 18:46:10 +0900263
264PRODUCT_PROPERTY_OVERRIDES += \
265 ro.sf.lcd_density=480
266
Hyejin Kimf9722d12015-03-06 15:26:55 +0900267PRODUCT_PROPERTY_OVERRIDES += \
268 persist.hwc.mdpcomp.enable=true
269
Hyejin Kimdfa3b062015-03-06 17:48:48 +0900270PRODUCT_PROPERTY_OVERRIDES += \
271 ro.hwui.texture_cache_size=72 \
272 ro.hwui.layer_cache_size=48 \
273 ro.hwui.r_buffer_cache_size=8 \
274 ro.hwui.path_cache_size=32 \
275 ro.hwui.gradient_cache_size=1 \
276 ro.hwui.drop_shadow_cache_size=6 \
277 ro.hwui.texture_cache_flushrate=0.4 \
278 ro.hwui.text_small_cache_width=1024 \
279 ro.hwui.text_small_cache_height=1024 \
280 ro.hwui.text_large_cache_width=2048 \
281 ro.hwui.text_large_cache_height=1024
282
Hyejin Kim275dc9e2015-03-11 16:09:56 +0900283PRODUCT_PROPERTY_OVERRIDES += \
Sungmin Choia2189522015-04-25 09:55:12 +0900284 ro.frp.pst=/dev/block/platform/soc.0/f9824900.sdhci/by-name/persistent
Sungmin Choi7ef97792015-03-26 14:22:40 +0900285
Sungmin Choi7b2a9a52015-05-12 11:44:49 +0900286PRODUCT_PROPERTY_OVERRIDES += \
287 drm.service.enabled=true
288
Sungmin Choi63d2dfb2015-04-24 11:11:14 +0900289# for perfd
290PRODUCT_PROPERTY_OVERRIDES += \
291 ro.min_freq_0=384000
292 ro.min_freq_4=384000
293
Sungmin Choi7ef97792015-03-26 14:22:40 +0900294PRODUCT_PROPERTY_OVERRIDES += \
Sungmin Choi7ad95212015-05-07 13:40:16 +0900295 ro.vendor.extension_library=libqti-perfd-client.so
296
297PRODUCT_PROPERTY_OVERRIDES += \
Sungmin Choi8f67d4d2015-04-06 16:24:01 -0700298 rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
Hyejin Kim275dc9e2015-03-11 16:09:56 +0900299
Hyejin Kim637e0da2015-03-11 16:13:01 +0900300PRODUCT_PROPERTY_OVERRIDES += \
301 ro.telephony.default_cdma_sub=0
302
Hyejin Kim9fec1202015-03-11 16:14:51 +0900303# LTE, CDMA, GSM/WCDMA
304PRODUCT_PROPERTY_OVERRIDES += \
Hyejin Kimdcb92d52015-03-11 16:15:55 +0900305 ro.telephony.default_network=10 \
Hyejin Kimd610c292015-03-11 16:24:46 +0900306 telephony.lteOnCdmaDevice=1 \
307 persist.radio.mode_pref_nv10=1
Hyejin Kim9fec1202015-03-11 16:14:51 +0900308
Hyejin Kim2495ef32015-03-11 16:26:31 +0900309PRODUCT_PROPERTY_OVERRIDES += \
310 persist.radio.apm_sim_not_pwdn=1
311
Hyejin Kim7fa043f2015-03-11 16:32:34 +0900312# Setup custom emergency number list based on the MCC. This is needed by RIL
313PRODUCT_PROPERTY_OVERRIDES += \
314 persist.radio.custom_ecc=1
315
Hyejin Kim6b9b6ef2015-03-11 16:48:14 +0900316# Request modem to send PLMN name always irrespective
317# of display condition in EFSPN.
318# RIL uses this property.
319PRODUCT_PROPERTY_OVERRIDES += \
320 persist.radio.always_send_plmn=true
321
Hyejin Kimc18396f2015-03-11 16:50:42 +0900322# Ril sends only one RIL_UNSOL_CALL_RING, so set call_ring.multiple to false
323PRODUCT_PROPERTY_OVERRIDES += \
324 ro.telephony.call_ring.multiple=0
325
Hyejin Kim54715562015-03-11 17:16:54 +0900326# Update 1x signal strength after 2s
327PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
328 persist.radio.snapshot_enabled=1 \
329 persist.radio.snapshot_timer=2
330
koh.changseok1980de72015-04-01 01:45:27 +0900331# Set bluetooth soc to rome
332PRODUCT_PROPERTY_OVERRIDES += \
333 qcom.bluetooth.soc=rome
334
Sungmin Choi30650402015-05-17 23:13:22 +0900335# Set Bluetooth transport initialization timeout
336PRODUCT_PROPERTY_OVERRIDES += \
337 bluetooth.enable_timeout_ms=12000
338
Sungmin Choi0800c902015-04-06 10:06:23 -0700339PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
340 ro.bt.bdaddr_path=/persist/bdaddr.txt
341
Hyejin Kimd0859d42015-03-11 17:26:06 +0900342# Modem debugger
343ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
344PRODUCT_PACKAGES += \
345 QXDMLogger
346
347PRODUCT_COPY_FILES += \
348 device/lge/bullhead/init.bullhead.diag.rc.userdebug:root/init.bullhead.diag.rc
349else
350PRODUCT_COPY_FILES += \
351 device/lge/bullhead/init.bullhead.diag.rc.user:root/init.bullhead.diag.rc
352endif
353
Sungmin Choic6f8bce2015-04-15 14:57:16 -0700354# setup dm-verity configs.
Sungmin Choia2189522015-04-25 09:55:12 +0900355PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc.0/f9824900.sdhci/by-name/system
356PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor
Sungmin Choic6f8bce2015-04-15 14:57:16 -0700357$(call inherit-product, build/target/product/verity.mk)
358
Hyejin Kim4344bc02015-03-04 18:46:10 +0900359# setup dalvik vm configs.
360$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
361
Patrick Tjinf3861aa2015-03-12 11:05:44 -0700362$(call inherit-product-if-exists, hardware/qcom/msm8994/msm8992.mk)
Patrick Tjinfd19f812015-03-11 15:50:30 -0700363$(call inherit-product-if-exists, vendor/qcom/gpu/msm8994/msm8994-gpu-vendor.mk)