blob: 9c016247a94d563f8e581a31003c11fe0ab63020 [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 \
Hyejin Kim4344bc02015-03-04 18:46:10 +090035 device/lge/bullhead/fstab.bullhead:root/fstab.bullhead \
Vineeta Srivastavacec9bdb2015-04-14 22:10:30 -070036 device/lge/bullhead/ueventd.bullhead.rc:root/ueventd.bullhead.rc \
Thierry Strudel16e5ac72015-05-14 15:25:21 -070037 device/lge/bullhead/init.bullhead.sensorhub.rc:root/init.bullhead.sensorhub.rc \
Vineeta Srivastavacec9bdb2015-04-14 22:10:30 -070038 device/lge/bullhead/init.bullhead.fp.rc:root/init.bullhead.fp.rc
Hyejin Kim4344bc02015-03-04 18:46:10 +090039
Hyejin Kim07633322015-03-09 17:25:27 +090040PRODUCT_COPY_FILES += \
41 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
42 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
43 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
Sungmin Choi571183f2015-05-21 13:28:30 +090044 device/lge/bullhead/media_codecs.xml:system/etc/media_codecs.xml \
45 device/lge/bullhead/media_profiles.xml:system/etc/media_profiles.xml
Hyejin Kim07633322015-03-09 17:25:27 +090046
donghun2.kim5cc57112015-03-19 21:03:02 +090047# Audio
48PRODUCT_COPY_FILES += \
49 device/lge/bullhead/audio_policy.conf:system/etc/audio_policy.conf \
Vineeta Srivastava2a009cd2015-06-29 16:07:11 -070050 device/lge/bullhead/audio_effects.conf:system/etc/audio_effects.conf \
keunhui.park2972bf92015-06-04 15:40:27 +090051 device/lge/bullhead/mixer_paths.xml:system/etc/mixer_paths.xml \
52 device/lge/bullhead/audio_platform_info.xml:system/etc/audio_platform_info.xml
donghun2.kim5cc57112015-03-19 21:03:02 +090053
Vineeta Srivastava69566b12015-05-13 08:56:25 -070054#Sound Trigger
55PRODUCT_COPY_FILES += \
56 device/lge/bullhead/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \
57 device/lge/bullhead/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml
58
Hyejin Kime68e4642015-03-07 11:44:49 +090059# Input device files
60PRODUCT_COPY_FILES += \
61 device/lge/bullhead/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
62 device/lge/bullhead/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl
63
Ramanan Rajeswaran49754a62015-06-05 10:49:28 -070064# for launcher layout
65PRODUCT_PACKAGES += \
66 BullheadLayout
67
68# Delegation for OEM customization
69PRODUCT_OEM_PROPERTIES := \
70 ro.config.ringtone \
71 ro.config.notification_sound \
72 ro.config.alarm_alert \
73 ro.config.wallpaper \
74 ro.config.wallpaper_component \
75 ro.oem.* \
76 oem.*
77
Hyejin Kime68e4642015-03-07 11:44:49 +090078# Prebuilt input device calibration files
79PRODUCT_COPY_FILES += \
80 device/lge/bullhead/touch_dev.idc:system/usr/idc/touch_dev.idc
81
Hyejin Kim4344bc02015-03-04 18:46:10 +090082# These are the hardware-specific features
83PRODUCT_COPY_FILES += \
Patrick Tjin6a7f9612015-04-14 20:25:11 -070084 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
85 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
Hyejin Kim8eaa6ea2015-03-06 18:43:25 +090086 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
87 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
88 frameworks/native/data/etc/android.hardware.camera.full.xml:system/etc/permissions/android.hardware.camera.full.xml \
89 frameworks/native/data/etc/android.hardware.camera.raw.xml:system/etc/permissions/android.hardware.camera.raw.xml \
90 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
91 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
92 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
93 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
94 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
95 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
96 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
97 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
98 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
99 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
100 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
101 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
102 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
103 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
104 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
105 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
Thierry Strudel058bafa2015-05-12 14:34:23 -0700106 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
107 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
Sungmin Choi71cc5b12015-05-18 20:02:25 +0900108 frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
109 frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml
Hyejin Kim4344bc02015-03-04 18:46:10 +0900110
Hyejin Kim82a5a9b2015-03-11 17:21:45 +0900111# For SPN display
112PRODUCT_COPY_FILES += \
113 device/lge/bullhead/spn-conf.xml:system/etc/spn-conf.xml
114
Hyejin Kimc15ba1c2015-03-26 20:15:10 +0900115# For GPS
116PRODUCT_COPY_FILES += \
117 device/lge/bullhead/sec_config:system/etc/sec_config
118
Thierry Strudelf9621af2015-05-07 23:25:21 -0700119# NFC config files
120PRODUCT_COPY_FILES += \
121 device/lge/bullhead/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
122 device/lge/bullhead/nfc/libnfc-nxp.conf:system/etc/libnfc-nxp.conf
123
Sungmin Choi29696422015-03-27 18:49:11 +0900124# For WiFi
125PRODUCT_COPY_FILES += \
126 device/lge/bullhead/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
127 device/lge/bullhead/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
128 device/lge/bullhead/wifi/WCNSS_cfg.dat:system/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat \
129 device/lge/bullhead/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini
130
Sungmin Choi0ce9c712015-04-22 10:44:52 +0900131# MSM IRQ Balancer configuration file
132PRODUCT_COPY_FILES += \
Sungmin Choi8f67d4d2015-04-06 16:24:01 -0700133 device/lge/bullhead/msm_irqbalance.conf:vendor/etc/msm_irqbalance.conf
Sungmin Choi0ce9c712015-04-22 10:44:52 +0900134
Thierry Strudela42e7ac2015-06-03 17:14:28 -0700135# Power configuration file
136PRODUCT_COPY_FILES += \
137 device/lge/bullhead/init.bullhead.power.sh:system/bin/init.bullhead.power.sh
138
Sungmin Choif70efd42015-06-08 16:20:07 -0700139# MBN
140PRODUCT_COPY_FILES += \
141 device/lge/bullhead/init.bullhead.sh:system/bin/init.bullhead.sh
142
Hyejin Kim4344bc02015-03-04 18:46:10 +0900143PRODUCT_TAGS += dalvik.gc.type-precise
144
145PRODUCT_AAPT_CONFIG := normal
Sungmin Choia866ad12015-03-21 13:18:59 +0900146PRODUCT_AAPT_PREF_CONFIG := xxhdpi
Hyejin Kim4344bc02015-03-04 18:46:10 +0900147
148PRODUCT_CHARACTERISTICS := nosdcard
149
Sungmin Choi9fc39862015-03-14 10:44:36 +0900150# for off charging mode
151PRODUCT_PACKAGES += \
152 charger_res_images
153
Hyejin Kime58fd8c2015-03-06 14:42:06 +0900154PRODUCT_PACKAGES += \
155 gralloc.msm8992 \
156 hwcomposer.msm8992 \
157 libgenlock \
soyoung.minb63ab6e2015-03-17 14:21:23 -0500158 memtrack.msm8992 \
159 lights.bullhead
Hyejin Kime58fd8c2015-03-06 14:42:06 +0900160
donghun2.kim5cc57112015-03-19 21:03:02 +0900161PRODUCT_PACKAGES += \
Sungmin Choibc9e50f2015-04-30 11:41:21 +0900162 libc2dcolorconvert \
163 libstagefrighthw \
164 libOmxCore \
165 libmm-omxcore \
166 libOmxVdec \
167 libOmxVdecHevc \
168 libOmxVenc
169
170PRODUCT_PACKAGES += \
donghun2.kim5cc57112015-03-19 21:03:02 +0900171 audio.primary.msm8992 \
172 audio.a2dp.default \
173 audio.usb.default \
174 audio.r_submix.default \
donghun2.kim7f7a93f2015-06-11 09:44:10 +0900175 libaudio-resampler \
176 libqcomvoiceprocessing \
177 libqcomvisualizer \
Sungmin Choifa381882015-06-27 13:01:43 +0900178 libqcompostprocbundle \
179 libvolumelistener
donghun2.kim5cc57112015-03-19 21:03:02 +0900180
Sungmin Choie9cbfdc2015-03-28 11:55:35 +0900181PRODUCT_PACKAGES += \
182 librmnetctl \
183 rmnetcli
184
seulgi.kim5e3e9b12015-03-31 15:17:20 +0900185# GPS module
186PRODUCT_PACKAGES += \
187 libgps.utils \
188 libloc_core \
189 libloc_eng \
190 libloc_api_v02 \
191 gps.msm8992
192
193# GPS configuration
194PRODUCT_COPY_FILES += \
195 device/lge/bullhead/gps.conf:system/etc/gps.conf
196
Thierry Strudel058bafa2015-05-12 14:34:23 -0700197# NFC packages
198PRODUCT_PACKAGES += \
Thierry Strudelf9621af2015-05-07 23:25:21 -0700199 nfc_nci.bullhead \
Thierry Strudel058bafa2015-05-12 14:34:23 -0700200 NfcNci \
201 Tag
202
Vineeta Srivastava12ba7482015-04-27 22:26:31 -0700203# Fingerprint Sensor
204PRODUCT_PACKAGES += \
205 fingerprint.bullhead
206
Sungmin Choi29696422015-03-27 18:49:11 +0900207# Wi-Fi
208PRODUCT_PACKAGES += \
209 libwpa_client \
210 hostapd \
211 dhcpcd.conf \
212 wpa_supplicant \
213 wpa_supplicant.conf
214
Sungmin Choi4db6ad62015-05-06 16:44:18 +0900215# Camera
216PRODUCT_PACKAGES += \
217 camera.msm8992 \
218 libcamera \
219 libmmcamera_interface \
220 libmmcamera_interface2 \
221 libmmjpeg_interface \
222 libqomx_core \
223 mm-qcamera-app
224
Thierry Strudel16e5ac72015-05-14 15:25:21 -0700225# Sensor & activity_recognition HAL
226PRODUCT_PACKAGES += \
227 sensors.bullhead \
228 activity_recognition.bullhead \
229 sensortool.bullhead
230
Sungmin Choia38ab542015-06-02 01:30:59 -0700231PRODUCT_PACKAGES += \
232 keystore.msm8992 \
233 gatekeeper.msm8992
234
Vineeta Srivastava9e62d512015-06-08 15:08:15 -0700235# Verified boot
236PRODUCT_PACKAGES += \
237 slideshow \
238 verity_warning_images
239
Tom Cherry8554f912015-06-04 14:42:23 -0700240# For android_filesystem_config.h
241PRODUCT_PACKAGES += \
242 fs_config_files
243
Hyejin Kim4344bc02015-03-04 18:46:10 +0900244DEVICE_PACKAGE_OVERLAYS := \
245 device/lge/bullhead/overlay
246
Sungmin Choif7b0ae72015-05-16 19:45:05 +0900247# Enable AAC 5.1 output
248PRODUCT_PROPERTY_OVERRIDES += \
249 media.aac_51_output_enabled=true
250
keunhui.park2972bf92015-06-04 15:40:27 +0900251# Audio
252PRODUCT_PROPERTY_OVERRIDES += \
253 persist.audio.dualmic.config=endfire \
254 persist.audio.fluence.voicecall=true \
255 persist.audio.fluence.voicecomm=true \
256 persist.audio.fluence.voicerec=false \
257 persist.audio.fluence.speaker=true \
258 persist.speaker.prot.enable=true
259
Hyejin Kim4344bc02015-03-04 18:46:10 +0900260PRODUCT_PROPERTY_OVERRIDES += \
Sungmin Choi29696422015-03-27 18:49:11 +0900261 wifi.interface=wlan0 \
262 wifi.supplicant_scan_interval=15
263
264PRODUCT_PROPERTY_OVERRIDES += \
Sungmin Choic56c6172015-03-09 08:51:41 +0900265 ro.opengles.version=196609
Hyejin Kim4344bc02015-03-04 18:46:10 +0900266
267PRODUCT_PROPERTY_OVERRIDES += \
268 ro.sf.lcd_density=480
269
Hyejin Kimf9722d12015-03-06 15:26:55 +0900270PRODUCT_PROPERTY_OVERRIDES += \
271 persist.hwc.mdpcomp.enable=true
272
Hyejin Kimdfa3b062015-03-06 17:48:48 +0900273PRODUCT_PROPERTY_OVERRIDES += \
274 ro.hwui.texture_cache_size=72 \
275 ro.hwui.layer_cache_size=48 \
276 ro.hwui.r_buffer_cache_size=8 \
277 ro.hwui.path_cache_size=32 \
278 ro.hwui.gradient_cache_size=1 \
279 ro.hwui.drop_shadow_cache_size=6 \
280 ro.hwui.texture_cache_flushrate=0.4 \
281 ro.hwui.text_small_cache_width=1024 \
282 ro.hwui.text_small_cache_height=1024 \
283 ro.hwui.text_large_cache_width=2048 \
284 ro.hwui.text_large_cache_height=1024
285
Hyejin Kim275dc9e2015-03-11 16:09:56 +0900286PRODUCT_PROPERTY_OVERRIDES += \
Sungmin Choia2189522015-04-25 09:55:12 +0900287 ro.frp.pst=/dev/block/platform/soc.0/f9824900.sdhci/by-name/persistent
Sungmin Choi7ef97792015-03-26 14:22:40 +0900288
Sungmin Choi7b2a9a52015-05-12 11:44:49 +0900289PRODUCT_PROPERTY_OVERRIDES += \
290 drm.service.enabled=true
291
Sungmin Choi63d2dfb2015-04-24 11:11:14 +0900292# for perfd
293PRODUCT_PROPERTY_OVERRIDES += \
294 ro.min_freq_0=384000
295 ro.min_freq_4=384000
296
Sungmin Choi7ef97792015-03-26 14:22:40 +0900297PRODUCT_PROPERTY_OVERRIDES += \
Sungmin Choi7ad95212015-05-07 13:40:16 +0900298 ro.vendor.extension_library=libqti-perfd-client.so
299
300PRODUCT_PROPERTY_OVERRIDES += \
Sungmin Choi8f67d4d2015-04-06 16:24:01 -0700301 rild.libpath=/vendor/lib64/libril-qc-qmi-1.so
Hyejin Kim275dc9e2015-03-11 16:09:56 +0900302
Hyejin Kim637e0da2015-03-11 16:13:01 +0900303PRODUCT_PROPERTY_OVERRIDES += \
304 ro.telephony.default_cdma_sub=0
305
Hyejin Kim9fec1202015-03-11 16:14:51 +0900306# LTE, CDMA, GSM/WCDMA
307PRODUCT_PROPERTY_OVERRIDES += \
Hyejin Kimdcb92d52015-03-11 16:15:55 +0900308 ro.telephony.default_network=10 \
Hyejin Kimd610c292015-03-11 16:24:46 +0900309 telephony.lteOnCdmaDevice=1 \
310 persist.radio.mode_pref_nv10=1
Hyejin Kim9fec1202015-03-11 16:14:51 +0900311
Hyejin Kim2495ef32015-03-11 16:26:31 +0900312PRODUCT_PROPERTY_OVERRIDES += \
313 persist.radio.apm_sim_not_pwdn=1
314
Hyejin Kim7fa043f2015-03-11 16:32:34 +0900315# Setup custom emergency number list based on the MCC. This is needed by RIL
316PRODUCT_PROPERTY_OVERRIDES += \
317 persist.radio.custom_ecc=1
318
Hyejin Kim6b9b6ef2015-03-11 16:48:14 +0900319# Request modem to send PLMN name always irrespective
320# of display condition in EFSPN.
321# RIL uses this property.
322PRODUCT_PROPERTY_OVERRIDES += \
323 persist.radio.always_send_plmn=true
324
Hyejin Kimc18396f2015-03-11 16:50:42 +0900325# Ril sends only one RIL_UNSOL_CALL_RING, so set call_ring.multiple to false
326PRODUCT_PROPERTY_OVERRIDES += \
327 ro.telephony.call_ring.multiple=0
328
Hyejin Kim54715562015-03-11 17:16:54 +0900329# Update 1x signal strength after 2s
330PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
331 persist.radio.snapshot_enabled=1 \
332 persist.radio.snapshot_timer=2
333
koh.changseok1980de72015-04-01 01:45:27 +0900334# Set bluetooth soc to rome
335PRODUCT_PROPERTY_OVERRIDES += \
336 qcom.bluetooth.soc=rome
337
Sungmin Choi30650402015-05-17 23:13:22 +0900338# Set Bluetooth transport initialization timeout
339PRODUCT_PROPERTY_OVERRIDES += \
340 bluetooth.enable_timeout_ms=12000
341
Sungmin Choi0800c902015-04-06 10:06:23 -0700342PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
343 ro.bt.bdaddr_path=/persist/bdaddr.txt
344
Veena Sambasivan6da58a12015-07-04 16:12:16 -0700345# Power HAL
346PRODUCT_PACKAGES += \
347 power.bullhead
348
Hyejin Kimd0859d42015-03-11 17:26:06 +0900349# Modem debugger
350ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
351PRODUCT_PACKAGES += \
352 QXDMLogger
353
354PRODUCT_COPY_FILES += \
355 device/lge/bullhead/init.bullhead.diag.rc.userdebug:root/init.bullhead.diag.rc
356else
357PRODUCT_COPY_FILES += \
358 device/lge/bullhead/init.bullhead.diag.rc.user:root/init.bullhead.diag.rc
359endif
360
Sungmin Choic6f8bce2015-04-15 14:57:16 -0700361# setup dm-verity configs.
Sungmin Choia2189522015-04-25 09:55:12 +0900362PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc.0/f9824900.sdhci/by-name/system
363PRODUCT_VENDOR_VERITY_PARTITION := /dev/block/platform/soc.0/f9824900.sdhci/by-name/vendor
Sungmin Choic6f8bce2015-04-15 14:57:16 -0700364$(call inherit-product, build/target/product/verity.mk)
365
Hyejin Kim4344bc02015-03-04 18:46:10 +0900366# setup dalvik vm configs.
367$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
368
Patrick Tjinf3861aa2015-03-12 11:05:44 -0700369$(call inherit-product-if-exists, hardware/qcom/msm8994/msm8992.mk)
Patrick Tjinfd19f812015-03-11 15:50:30 -0700370$(call inherit-product-if-exists, vendor/qcom/gpu/msm8994/msm8994-gpu-vendor.mk)