blob: 931e7440a649b951e57da9cc7b8eee726f982e11 [file] [log] [blame]
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -07001#
Vineeta Srivastava4248fd42014-05-02 16:20:41 -07002# Copyright (C) 2014 The Android Open-Source Project
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -07003#
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
Vineeta Srivastava4248fd42014-05-02 16:20:41 -070017# This file includes all definitions that apply to ALL shamu devices, and
18# are also specific to shamu devices
19#
20# Everything in this directory will become public
21
Vineeta Srivastava3647fdf2014-04-30 10:40:02 -070022
Vineeta Srivastava7f786f62014-04-30 22:35:48 -070023ifeq ($(TARGET_PREBUILT_KERNEL),)
24LOCAL_KERNEL := device/moto/shamu-kernel/zImage-dtb
25else
26LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
27endif
28
29
30PRODUCT_COPY_FILES := \
31 $(LOCAL_KERNEL):kernel
Vineeta Srivastava4248fd42014-05-02 16:20:41 -070032
33PRODUCT_COPY_FILES += \
34 device/moto/shamu/init.shamu.rc:root/init.shamu.rc \
Chris Fries97337a22014-06-13 09:01:48 -050035 device/moto/shamu/init.shamu.power.rc:root/init.shamu.power.rc \
Vineeta Srivastava4248fd42014-05-02 16:20:41 -070036 device/moto/shamu/init.shamu.usb.rc:root/init.shamu.usb.rc \
37 device/moto/shamu/fstab.shamu:root/fstab.shamu \
38 device/moto/shamu/ueventd.shamu.rc:root/ueventd.shamu.rc
39
40# Input device files for shamu
41PRODUCT_COPY_FILES += \
Michael Wrighte2985d92014-08-29 12:59:52 -070042 device/moto/shamu/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
Michael Wright9eab05a2014-09-25 15:57:00 -070043 device/moto/shamu/apq8084-taiko-tfa9890_stereo_co_Button_Jack.kl:system/usr/keylayout/apq8084-taiko-tfa9890_stereo_co_Button_Jack.kl \
Michael Wright93e87972014-09-23 13:44:07 -070044 device/moto/shamu/atmel_mxt_ts.idc:system/usr/idc/atmel_mxt_ts.idc
Vineeta Srivastava4248fd42014-05-02 16:20:41 -070045
Vineeta Srivastavac666ece2014-05-07 15:47:27 -070046PRODUCT_COPY_FILES += \
Vineeta Srivastava8cc76b42014-05-09 10:53:46 -070047 device/moto/shamu/audio_policy.conf:system/etc/audio_policy.conf \
48 device/moto/shamu/audio_effects.conf:system/etc/audio_effects.conf
49
50PRODUCT_COPY_FILES += \
51 device/moto/shamu/media_profiles.xml:system/etc/media_profiles.xml \
52 device/moto/shamu/media_codecs.xml:system/etc/media_codecs.xml
53
54PRODUCT_COPY_FILES += \
Vineeta Srivastavac666ece2014-05-07 15:47:27 -070055 device/moto/shamu/mixer_paths.xml:system/etc/mixer_paths.xml
56
Vineeta Srivastavae0402252014-05-19 12:35:33 -070057PRODUCT_COPY_FILES += \
58 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
59 frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
60 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml
61
62# These are the hardware-specific features
63PRODUCT_COPY_FILES += \
64 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
65 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
66 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
Zhijun Hec2f384a2014-11-18 15:03:57 -080067 frameworks/native/data/etc/android.hardware.camera.full.xml:system/etc/permissions/android.hardware.camera.full.xml \
68 frameworks/native/data/etc/android.hardware.camera.raw.xml:system/etc/permissions/android.hardware.camera.raw.xml \
Vineeta Srivastavae0402252014-05-19 12:35:33 -070069 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
70 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
71 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
72 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
73 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
74 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
75 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
76 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
77 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
78 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
Vineeta Srivastavad09f9c62014-09-10 19:16:19 +000079 frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
Vineeta Srivastavae0402252014-05-19 12:35:33 -070080 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
81 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
82 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
83 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
84 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
Robert Greenwalt1970f5a2014-09-26 17:48:32 -070085 frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
Jesse Hall23e8b7a2014-12-22 15:57:16 -080086 frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
87 frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.xml
Vineeta Srivastavae0402252014-05-19 12:35:33 -070088
Mekala Natarajand0b2f412014-05-13 22:42:16 -070089# For GPS
90PRODUCT_COPY_FILES += \
91 device/moto/shamu/sec_config:system/etc/sec_config
92
Chris Fries5e178bd2014-06-25 08:26:14 -050093# Touch firmware updater
94PRODUCT_COPY_FILES += \
Nick Kralevich6a84d922015-02-06 17:31:28 -080095 $(LOCAL_PATH)/init.mmi.touch.sh:system/bin/init.mmi.touch.sh
Chris Fries5e178bd2014-06-25 08:26:14 -050096
Santhosh Gillella9d6dc7a2014-06-09 11:10:46 -050097# Add WiFi Firmware
98$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4356/device-bcm.mk)
99
100# WiFi cal NVRAM file
101PRODUCT_COPY_FILES += \
102 device/moto/shamu/bcmdhd.cal:system/etc/wifi/bcmdhd.cal
103
Amit Mahajanfee26792014-09-30 15:26:40 -0700104# For SPN display
105PRODUCT_COPY_FILES += \
106 device/moto/shamu/spn-conf.xml:system/etc/spn-conf.xml
107
Vineeta Srivastava82a1bb12014-09-24 10:52:50 -0700108# This device is 560dpi. However the platform doesn't
109# currently contain all of the bitmaps at 560dpi density so
110# we do this little trick to fall back to the xxhdpi version
111# if the 560dpi doesn't exist.
Ying Wangc3dcdb22014-12-10 12:44:33 -0800112PRODUCT_AAPT_CONFIG := normal
Vineeta Srivastava82a1bb12014-09-24 10:52:50 -0700113PRODUCT_AAPT_PREF_CONFIG := 560dpi
Ying Wangc3dcdb22014-12-10 12:44:33 -0800114# A list of dpis to select prebuilt apk, in precedence order.
115PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700116
117PRODUCT_CHARACTERISTICS := nosdcard
118
119DEVICE_PACKAGE_OVERLAYS := \
120 device/moto/shamu/overlay
121
122PRODUCT_PACKAGES := \
123 libwpa_client \
124 hostapd \
Santhosh Gillella7784ce92014-06-10 00:06:48 -0500125 dhcpcd.conf \
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700126 wpa_supplicant \
127 wpa_supplicant.conf
128
Chris Fries5e178bd2014-06-25 08:26:14 -0500129PRODUCT_PACKAGES += atmel.fw.apq8084
130
Mayank Agarwalb81df3f2014-08-06 19:54:46 -0700131# OEM Package for RIL
132PRODUCT_PACKAGES += \
133 qmi_motext_hook
134
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700135# Live Wallpapers
136PRODUCT_PACKAGES += \
137 LiveWallpapersPicker \
138 librs_jni
139
140PRODUCT_PACKAGES += \
141 gralloc.msm8084 \
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700142 hwcomposer.msm8084 \
143 memtrack.msm8084 \
144 libqdutils \
145 libqdMetaData
146
147PRODUCT_PACKAGES += \
148 libc2dcolorconvert \
149 libstagefrighthw \
150 libOmxCore \
151 libmm-omxcore \
152 libOmxVdec \
153 libOmxVdecHevc \
154 libOmxVenc
155
156PRODUCT_PACKAGES += \
157 audio.primary.msm8084 \
158 audio.a2dp.default \
159 audio.usb.default \
160 audio.r_submix.default \
161 libaudio-resampler
162
Jon Eklunda0201d32014-09-10 13:38:40 -0500163PRODUCT_PROPERTY_OVERRIDES += \
Vineeta Srivastavae7b46992014-10-11 21:59:31 +0000164 ro.audio.monitorRotation=true
Jon Eklunda0201d32014-09-10 13:38:40 -0500165
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700166# Audio effects
167PRODUCT_PACKAGES += \
168 libqcomvisualizer \
169 libqcomvoiceprocessing \
170 libqcomvoiceprocessingdescriptors
171
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700172PRODUCT_PACKAGES += \
173 libqomx_core \
174 libmmcamera_interface \
175 libmmjpeg_interface \
Shuzhen Wang7ed009d2014-06-22 21:36:13 -0700176 camera.msm8084 \
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700177 mm-jpeg-interface-test \
178 mm-qcamera-app
179
Vineeta Srivastavad92456d2014-05-12 13:31:01 -0700180PRODUCT_PACKAGES += \
181 libion
182
183PRODUCT_PACKAGES += \
184 lights.shamu
185
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700186# Filesystem management tools
187PRODUCT_PACKAGES += \
188 e2fsck
189
190# for off charging mode
191PRODUCT_PACKAGES += \
192 charger_res_images
193
Adam Cohenfd159342014-08-23 17:29:25 -0700194# for launcher layout
195PRODUCT_PACKAGES += \
196 ShamuLayout
197
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700198PRODUCT_PACKAGES += \
199 bdAddrLoader
200
Naveen Ramarajc5c14932014-06-03 12:44:17 -0700201PRODUCT_PACKAGES += \
202 keystore.msm8084
203
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700204PRODUCT_PROPERTY_OVERRIDES += \
Iliyan Malcheva4b79692014-12-02 14:27:37 -0800205 ro.opengles.version=196609
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700206
207PRODUCT_PROPERTY_OVERRIDES += \
Ramanan Rajeswaran6f4b4612014-08-10 10:21:05 -0700208 ro.sf.lcd_density=560
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700209
210PRODUCT_PROPERTY_OVERRIDES += \
211 persist.hwc.mdpcomp.enable=true
212
Chris Fries2a6a2172014-05-14 15:37:27 -0500213PRODUCT_PROPERTY_OVERRIDES += \
214 rild.libpath=/system/vendor/lib/libril-qc-qmi-1.so
215
Chris Fries73088982014-05-21 11:43:08 -0500216PRODUCT_PROPERTY_OVERRIDES += \
Jayachandran C52c598b2014-10-16 02:15:13 -0700217 persist.radio.apm_sim_not_pwdn=1 \
218 persist.radio.no_wait_for_card=1
Naveen Ramaraj7928d602014-07-16 11:40:42 -0700219
Mekala Natarajanf5f346d2014-12-11 11:34:31 -0800220#Reduce IMS logging
221PRODUCT_PROPERTY_OVERRIDES += \
222 persist.ims.disableDebugLogs=1
223
Mayank Agarwal1da96a32014-09-19 17:35:51 -0700224#Disable QC Oem Hook
225PRODUCT_PROPERTY_OVERRIDES += \
226 persist.radio.oem_socket=false
227
228#Support for graceful UICC Vltg supply deact
229PRODUCT_PROPERTY_OVERRIDES += \
230 persist.qcril_uim_vcc_feature=1
231
Naveen Ramaraj7928d602014-07-16 11:40:42 -0700232PRODUCT_PROPERTY_OVERRIDES += \
Chris Fries73088982014-05-21 11:43:08 -0500233 ro.telephony.default_cdma_sub=0
234
Vineeta Srivastava3d5f9e42014-05-22 14:44:51 -0700235# LTE, CDMA, GSM/WCDMA
236PRODUCT_PROPERTY_OVERRIDES += \
237 ro.telephony.default_network=10 \
238 telephony.lteOnCdmaDevice=1
239
Wenlong Che7269c2c2014-11-21 14:41:34 -0600240# SIM based FSG loading & MCFG activation
Wenlong Che60003152014-07-21 11:07:05 -0500241PRODUCT_PROPERTY_OVERRIDES += \
Wenlong Che60003152014-07-21 11:07:05 -0500242 persist.radio.fsg_reload_on=1 \
Wenlong Che7269c2c2014-11-21 14:41:34 -0600243 persist.radio.mcfg_enabled=1
Wenlong Che60003152014-07-21 11:07:05 -0500244
Shuzhen Wangd3c01552014-06-28 10:33:05 -0700245# Camera configuration
246PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
Vineeta Srivastava3eb2a322014-07-29 11:26:23 -0700247 camera.disable_zsl_mode=0
Shuzhen Wangd3c01552014-06-28 10:33:05 -0700248
249PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
250 persist.camera.HAL3.enabled=1
251
Shuzhen Wanga1863142014-07-21 14:03:15 -0700252PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
Vineeta Srivastava93115c62014-08-13 16:45:41 -0700253 persist.camera.ois.disable=0
Shuzhen Wanga1863142014-07-21 14:03:15 -0700254
Mekala Natarajan51f71262014-05-29 14:30:47 -0700255# GPS configuration
256PRODUCT_COPY_FILES += \
Jignesh Dixita2ebe162014-06-04 10:49:32 -0500257 device/moto/shamu/gps.conf:system/etc/gps.conf
Mekala Natarajan51f71262014-05-29 14:30:47 -0700258
259# GPS
260PRODUCT_PACKAGES += \
261 libloc_adapter \
262 libloc_eng \
263 libloc_api_v02 \
264 libloc_ds_api \
265 libloc_core \
266 libizat_core \
267 libgeofence \
268 libgps.utils \
269 gps.msm8084 \
Vineeta Srivastavac4aee862014-07-09 07:32:41 +0000270 flp.msm8084 \
271 liblbs_core \
Kevin Tangb994ecb2014-12-08 12:54:29 -0800272 flp.conf
Mekala Natarajan51f71262014-05-29 14:30:47 -0700273
Vineeta Srivastava1f591812014-06-13 16:17:02 -0700274# NFC packages
275PRODUCT_PACKAGES += \
Martijn Coenen7c7b7922014-07-25 10:00:49 -0700276 nfc_nci.bcm2079x.default \
Vineeta Srivastava1f591812014-06-13 16:17:02 -0700277 NfcNci \
278 Tag
279
bshao122e39a12014-06-12 10:10:08 -0500280PRODUCT_COPY_FILES += \
bshao122e39a12014-06-12 10:10:08 -0500281 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
282 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
283 device/moto/shamu/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
Martijn Coenenc6ee8cb2014-09-29 20:04:19 -0700284 device/moto/shamu/nfc/libnfc-brcm-20795a10.conf:system/etc/libnfc-brcm-20795a10.conf
bshao122e39a12014-06-12 10:10:08 -0500285
Vineeta Srivastavaa47338c2014-07-11 11:38:36 -0700286PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
Chris Friesbc111842014-06-25 11:01:17 -0500287 persist.sys.usb.config=mtp
288
Patrick Tjine62a0932014-06-29 21:47:36 -0700289# Modem debugger
Patrick Tjin5c28ba92014-07-01 10:47:09 -0700290ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
Patrick Tjine62a0932014-06-29 21:47:36 -0700291PRODUCT_PACKAGES += \
292 QXDMLogger
293
Ramanan Rajeswaran87d32082014-09-08 14:47:24 -0700294# Disable modem ramdumps
295PRODUCT_PROPERTY_OVERRIDES += \
296 persist.sys.qc.sub.rdump.on=0
297
Patrick Tjine62a0932014-06-29 21:47:36 -0700298PRODUCT_COPY_FILES += \
299 device/moto/shamu/init.shamu.diag.rc.userdebug:root/init.shamu.diag.rc
300else
301PRODUCT_COPY_FILES += \
302 device/moto/shamu/init.shamu.diag.rc.user:root/init.shamu.diag.rc
303endif
304
Libin.Tang@motorola.com90bd37b2014-07-23 16:20:37 -0500305# Enable for volte call
Etan Cohenf909ec42014-10-07 22:34:37 -0700306AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
Libin.Tang@motorola.com90bd37b2014-07-23 16:20:37 -0500307
Iliyan Malchev642c54b2014-08-06 22:34:16 -0700308PRODUCT_PROPERTY_OVERRIDES += \
Iliyan Malcheva66764c2014-08-06 11:32:36 -0700309 ro.hwui.texture_cache_size=72 \
310 ro.hwui.layer_cache_size=48 \
311 ro.hwui.r_buffer_cache_size=8 \
312 ro.hwui.path_cache_size=32 \
313 ro.hwui.gradient_cache_size=1 \
314 ro.hwui.drop_shadow_cache_size=6 \
315 ro.hwui.texture_cache_flushrate=0.4 \
316 ro.hwui.text_small_cache_width=1024 \
317 ro.hwui.text_small_cache_height=1024 \
318 ro.hwui.text_large_cache_width=2048 \
319 ro.hwui.text_large_cache_height=1024
320
Ajay Dudani2e51cd22014-09-15 22:32:25 -0700321
322PRODUCT_PROPERTY_OVERRIDES += \
323 dalvik.vm.heapgrowthlimit=256m
324
Vineeta Srivastava4248fd42014-05-02 16:20:41 -0700325# setup dalvik vm configs.
326$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
327
328$(call inherit-product-if-exists, hardware/qcom/msm8x84/msm8x84.mk)
Vineeta Srivastavac666ece2014-05-07 15:47:27 -0700329$(call inherit-product-if-exists, vendor/qcom/gpu/msm8x84/msm8x84-gpu-vendor.mk)
Ajay Dudani66481b42014-06-18 23:01:33 -0700330
331# setup dm-verity configs.
Geremy Condrad6eacf32014-08-21 14:17:15 -0700332PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/msm_sdcc.1/by-name/system
Ajay Dudani66481b42014-06-18 23:01:33 -0700333$(call inherit-product, build/target/product/verity.mk)
334
Iliyan Malchev20ecf232014-08-05 11:09:50 -0700335# setup scheduler tunable
336PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
337 ro.qualcomm.perf.cores_online=2
338
Vineeta Srivastava407be712014-08-17 02:31:28 -0700339PRODUCT_PACKAGES += \
340 power.shamu
Chris Fries4da94152014-08-22 17:08:28 -0500341
342PRODUCT_PROPERTY_OVERRIDES += \
343 ro.frp.pst=/dev/block/platform/msm_sdcc.1/by-name/frp
Vineeta Srivastava393ee022014-09-16 08:45:24 -0700344
345# Delegation for OEM customization
346PRODUCT_OEM_PROPERTIES := \
347 ro.config.ringtone \
348 ro.config.notification_sound \
349 ro.config.alarm_alert \
350 ro.config.wallpaper \
351 ro.config.wallpaper_component \
352 ro.oem.* \
353 oem.*
Mayank Agarwal5700f8d2015-02-03 20:28:53 -0800354
355# Copy the qcril.db file from qcril to system. Useful to get the radio tech family for the camped operator
356PRODUCT_COPY_FILES += \
357 device/moto/shamu/qcril.db:system/etc/ril/qcril.db