• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2014 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 shamu devices, and
18# are also specific to shamu devices
19#
20# Everything in this directory will become public
21
22
23ifeq ($(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
32
33PRODUCT_COPY_FILES += \
34    device/moto/shamu/init.shamu.rc:root/init.shamu.rc \
35    device/moto/shamu/init.shamu.power.rc:root/init.shamu.power.rc \
36    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 += \
42    device/moto/shamu/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
43    device/moto/shamu/apq8084-taiko-tfa9890_stereo_co_Button_Jack.kl:system/usr/keylayout/apq8084-taiko-tfa9890_stereo_co_Button_Jack.kl \
44	device/moto/shamu/atmel_mxt_ts.idc:system/usr/idc/atmel_mxt_ts.idc
45
46PRODUCT_COPY_FILES += \
47    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    device/moto/shamu/media_codecs_performance.xml:system/etc/media_codecs_performance.xml
54
55PRODUCT_COPY_FILES += \
56    device/moto/shamu/mixer_paths.xml:system/etc/mixer_paths.xml \
57    device/moto/shamu/audio_platform_info.xml:system/etc/audio_platform_info.xml
58
59PRODUCT_COPY_FILES += \
60    frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
61    frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
62    frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml
63
64# These are the hardware-specific features
65PRODUCT_COPY_FILES += \
66    frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
67    frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
68    frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
69    frameworks/native/data/etc/android.hardware.camera.full.xml:system/etc/permissions/android.hardware.camera.full.xml \
70    frameworks/native/data/etc/android.hardware.camera.raw.xml:system/etc/permissions/android.hardware.camera.raw.xml \
71    frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
72    frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
73    frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
74    frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
75    frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
76    frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
77    frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
78    frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
79    frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
80    frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
81    frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
82    frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
83    frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
84    frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
85    frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
86    frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
87    frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
88    frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.xml \
89    frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml
90
91# For GPS
92PRODUCT_COPY_FILES += \
93    device/moto/shamu/sec_config:system/etc/sec_config
94
95# Touch firmware updater
96PRODUCT_COPY_FILES += \
97    $(LOCAL_PATH)/init.mmi.touch.sh:system/bin/init.mmi.touch.sh
98
99# Add WiFi Firmware
100$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4356/device-bcm.mk)
101
102# WiFi cal NVRAM file
103PRODUCT_COPY_FILES += \
104    device/moto/shamu/bcmdhd.cal:system/etc/wifi/bcmdhd.cal
105
106# BT FW
107PRODUCT_COPY_FILES += \
108    device/moto/shamu/bluetooth/BCM4356A2_001.003.015.0077.0214_ORC.hcd:$(TARGET_COPY_OUT_VENDOR)/firmware/bcm4354A2.hcd
109
110# For SPN display
111PRODUCT_COPY_FILES += \
112    device/moto/shamu/spn-conf.xml:system/etc/spn-conf.xml
113
114PRODUCT_AAPT_CONFIG := normal
115PRODUCT_AAPT_PREF_CONFIG := 560dpi
116# A list of dpis to select prebuilt apk, in precedence order.
117PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
118
119PRODUCT_CHARACTERISTICS := nosdcard
120
121DEVICE_PACKAGE_OVERLAYS := \
122    device/moto/shamu/overlay
123
124PRODUCT_PACKAGES := \
125    libwpa_client \
126    hostapd \
127    wpa_supplicant \
128    wpa_supplicant.conf
129
130PRODUCT_PACKAGES += atmel.fw.apq8084
131
132# OEM Package for RIL
133PRODUCT_PACKAGES += \
134    qmi_motext_hook
135
136# Live Wallpapers
137PRODUCT_PACKAGES += \
138    LiveWallpapersPicker \
139    librs_jni
140
141PRODUCT_PACKAGES += \
142    gralloc.msm8084 \
143    hwcomposer.msm8084 \
144    memtrack.msm8084 \
145    libqdutils \
146    libqdMetaData
147
148PRODUCT_PACKAGES += \
149    libc2dcolorconvert \
150    libstagefrighthw \
151    libOmxCore \
152    libmm-omxcore \
153    libOmxVdec \
154    libOmxVdecHevc \
155    libOmxVenc
156
157PRODUCT_PACKAGES += \
158    audio.primary.msm8084 \
159    audio.a2dp.default \
160    audio.usb.default \
161    audio.r_submix.default \
162    libaudio-resampler
163
164PRODUCT_PROPERTY_OVERRIDES += \
165    ro.audio.monitorRotation=true
166
167# Audio effects
168PRODUCT_PACKAGES += \
169    libqcomvisualizer \
170    libqcomvoiceprocessing \
171    libqcomvoiceprocessingdescriptors
172
173PRODUCT_PACKAGES += \
174    libqomx_core \
175    libmmcamera_interface \
176    libmmjpeg_interface \
177    camera.msm8084 \
178    mm-jpeg-interface-test \
179    mm-qcamera-app
180
181PRODUCT_PACKAGES += \
182    libion
183
184PRODUCT_PACKAGES += \
185    lights.shamu
186
187# Filesystem management tools
188PRODUCT_PACKAGES += \
189    e2fsck
190
191# for off charging mode
192PRODUCT_PACKAGES += \
193    charger_res_images
194
195# for launcher layout
196PRODUCT_PACKAGES += \
197    ShamuLayout
198
199PRODUCT_PACKAGES += \
200    bdAddrLoader
201
202PRODUCT_PACKAGES += \
203    keystore.msm8084
204
205PRODUCT_PROPERTY_OVERRIDES += \
206    ro.opengles.version=196610
207
208PRODUCT_PROPERTY_OVERRIDES += \
209    ro.sf.lcd_density=560
210
211PRODUCT_PROPERTY_OVERRIDES += \
212    persist.hwc.mdpcomp.enable=true
213
214PRODUCT_PROPERTY_OVERRIDES += \
215    rild.libpath=/system/vendor/lib/libril-qc-qmi-1.so
216
217PRODUCT_PROPERTY_OVERRIDES += \
218    persist.radio.apm_sim_not_pwdn=1 \
219    persist.radio.no_wait_for_card=1 \
220    persist.radio.data_no_toggle=1
221
222#Reduce IMS logging
223PRODUCT_PROPERTY_OVERRIDES += \
224    persist.ims.disableDebugLogs=1 \
225    persist.ims.disableADBLogs=2 \
226    persist.ims.disableDebugLogs=0 \
227    persist.ims.disableQXDMLogs=0 \
228    persist.ims.disableIMSLogs=1 \
229    persist.camera.hal.debug.mask=7 \
230    persist.camera.ISP.debug.mask=0 \
231    persist.camera.pproc.debug.mask=7 \
232    persist.camera.stats.debug.mask=0 \
233    persit.camera.imglib.logs=1 \
234    persist.camera.mct.debug.mask=1 \
235    persist.camera.sensor.debug=0 \
236    vidc.debug.level=1
237
238#Disable QC Oem Hook
239PRODUCT_PROPERTY_OVERRIDES += \
240    persist.radio.oem_socket=false
241
242#Support for graceful UICC Vltg supply deact
243PRODUCT_PROPERTY_OVERRIDES += \
244    persist.qcril_uim_vcc_feature=1
245
246PRODUCT_PROPERTY_OVERRIDES += \
247    ro.telephony.default_cdma_sub=0
248
249# LTE, CDMA, GSM/WCDMA
250PRODUCT_PROPERTY_OVERRIDES += \
251    ro.telephony.default_network=10 \
252    telephony.lteOnCdmaDevice=1
253
254# SIM based FSG loading & MCFG activation
255PRODUCT_PROPERTY_OVERRIDES += \
256    persist.radio.fsg_reload_on=1 \
257    persist.radio.mcfg_enabled=1
258
259# Camera configuration
260PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
261    camera.disable_zsl_mode=0
262
263PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
264    persist.camera.HAL3.enabled=1
265
266PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
267    persist.camera.ois.disable=0
268
269# GPS configuration
270PRODUCT_COPY_FILES += \
271    device/moto/shamu/gps.conf:system/etc/gps.conf
272
273# GPS
274PRODUCT_PACKAGES += \
275    libloc_adapter \
276    libloc_eng \
277    libloc_api_v02 \
278    libloc_ds_api \
279    libloc_core \
280    libizat_core \
281    libgeofence \
282    libgps.utils \
283    gps.msm8084 \
284    flp.msm8084 \
285    liblbs_core \
286    flp.conf
287
288# NFC packages
289PRODUCT_PACKAGES += \
290    nfc_nci.bcm2079x.default \
291    NfcNci \
292    Tag
293
294PRODUCT_COPY_FILES += \
295    frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
296    frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
297    frameworks/native/data/etc/android.hardware.nfc.hcef.xml:system/etc/permissions/android.hardware.nfc.hcef.xml \
298    device/moto/shamu/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
299    device/moto/shamu/nfc/libnfc-brcm-20795a10.conf:system/etc/libnfc-brcm-20795a10.conf
300
301# Modem debugger
302ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
303PRODUCT_PACKAGES += \
304    QXDMLogger
305
306# Disable modem ramdumps
307PRODUCT_PROPERTY_OVERRIDES += \
308    persist.sys.qc.sub.rdump.on=0
309
310PRODUCT_COPY_FILES += \
311    device/moto/shamu/init.shamu.diag.rc.userdebug:root/init.shamu.diag.rc
312else
313PRODUCT_COPY_FILES += \
314    device/moto/shamu/init.shamu.diag.rc.user:root/init.shamu.diag.rc
315endif
316
317# Enable for volte call
318AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
319
320PRODUCT_PROPERTY_OVERRIDES += \
321   ro.hwui.texture_cache_size=72 \
322   ro.hwui.layer_cache_size=48 \
323   ro.hwui.r_buffer_cache_size=8 \
324   ro.hwui.path_cache_size=32 \
325   ro.hwui.gradient_cache_size=1 \
326   ro.hwui.drop_shadow_cache_size=6 \
327   ro.hwui.texture_cache_flushrate=0.4 \
328   ro.hwui.text_small_cache_width=1024 \
329   ro.hwui.text_small_cache_height=1024 \
330   ro.hwui.text_large_cache_width=2048 \
331   ro.hwui.text_large_cache_height=1024
332
333
334PRODUCT_PROPERTY_OVERRIDES += \
335   dalvik.vm.heapgrowthlimit=256m
336
337# In userdebug, add minidebug info the the boot image and the system server to support
338# diagnosing native crashes.
339ifneq (,$(filter userdebug, $(TARGET_BUILD_VARIANT)))
340    # Boot image.
341    PRODUCT_DEX_PREOPT_BOOT_FLAGS += --generate-mini-debug-info
342    # System server and some of its services.
343    # Note: we cannot use PRODUCT_SYSTEM_SERVER_JARS, as it has not been expanded at this point.
344    $(call add-product-dex-preopt-module-config,services,--generate-mini-debug-info)
345    $(call add-product-dex-preopt-module-config,wifi-service,--generate-mini-debug-info)
346endif
347
348# setup dalvik vm configs.
349$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
350
351$(call inherit-product-if-exists, hardware/qcom/msm8x84/msm8x84.mk)
352$(call inherit-product-if-exists, vendor/qcom/gpu/msm8x84/msm8x84-gpu-vendor.mk)
353
354# setup dm-verity configs.
355PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/msm_sdcc.1/by-name/system
356$(call inherit-product, build/target/product/verity.mk)
357
358PRODUCT_PACKAGES += \
359    slideshow \
360    verity_warning_images
361
362# setup scheduler tunable
363PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
364    ro.qualcomm.perf.cores_online=2
365
366PRODUCT_PACKAGES += \
367    power.shamu \
368    thermal.shamu
369
370# For android_filesystem_config.h
371PRODUCT_PACKAGES += \
372   fs_config_files
373
374PRODUCT_PROPERTY_OVERRIDES += \
375   ro.frp.pst=/dev/block/platform/msm_sdcc.1/by-name/frp
376
377# Delegation for OEM customization
378PRODUCT_OEM_PROPERTIES := \
379    ro.config.ringtone \
380    ro.config.notification_sound \
381    ro.config.alarm_alert \
382    ro.config.wallpaper \
383    ro.config.wallpaper_component \
384    ro.oem.* \
385    oem.*
386
387# Copy the qcril.db file from qcril to system. Useful to get the radio tech family for the camped operator
388PRODUCT_COPY_FILES += \
389    device/moto/shamu/qcril.db:system/etc/ril/qcril.db
390
391# Reduce client buffer size for fast audio output tracks
392PRODUCT_PROPERTY_OVERRIDES += \
393    af.fast_track_multiplier=1
394
395# Low latency audio buffer size in frames
396PRODUCT_PROPERTY_OVERRIDES += \
397    audio_hal.period_size=192
398
399# Set correct voice call audio property values
400PRODUCT_PROPERTY_OVERRIDES += \
401    ro.config.vc_call_vol_steps=6 \
402    persist.audio.dualmic.config=endfire \
403    ro.qc.sdk.audio.fluencetype=fluence \
404    persist.audio.fluence.voicecall=true \
405    persist.audio.fluence.voicecomm=false \
406    persist.audio.fluence.voicerec=false \
407    persist.audio.fluence.speaker=false
408
409# OEM Unlock reporting
410ADDITIONAL_DEFAULT_PROPERTIES += \
411    ro.oem_unlock_supported=1
412