• 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
54PRODUCT_COPY_FILES += \
55    device/moto/shamu/mixer_paths.xml:system/etc/mixer_paths.xml
56
57PRODUCT_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 \
67    frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
68    frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
69    frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
70    frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
71    frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
72    frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
73    frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
74    frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
75    frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
76    frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
77    frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
78    frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
79    frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
80    frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
81    frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
82    frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
83    frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml \
84    frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
85
86# For GPS
87PRODUCT_COPY_FILES += \
88    device/moto/shamu/sec_config:system/etc/sec_config
89
90# Touch firmware updater
91PRODUCT_COPY_FILES += \
92    $(LOCAL_PATH)/init.mmi.touch.sh:root/init.mmi.touch.sh
93
94# Add WiFi Firmware
95$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4356/device-bcm.mk)
96
97# WiFi cal NVRAM file
98PRODUCT_COPY_FILES += \
99    device/moto/shamu/bcmdhd.cal:system/etc/wifi/bcmdhd.cal
100
101# For SPN display
102PRODUCT_COPY_FILES += \
103    device/moto/shamu/spn-conf.xml:system/etc/spn-conf.xml
104
105PRODUCT_TAGS += dalvik.gc.type-precise
106
107# This device is 560dpi.  However the platform doesn't
108# currently contain all of the bitmaps at 560dpi density so
109# we do this little trick to fall back to the xxhdpi version
110# if the 560dpi doesn't exist.
111PRODUCT_AAPT_CONFIG := normal hdpi xhdpi xxhdpi 560dpi xxxhdpi
112PRODUCT_AAPT_PREF_CONFIG := 560dpi
113
114PRODUCT_CHARACTERISTICS := nosdcard
115
116DEVICE_PACKAGE_OVERLAYS := \
117    device/moto/shamu/overlay
118
119PRODUCT_PACKAGES := \
120    libwpa_client \
121    hostapd \
122    dhcpcd.conf \
123    wpa_supplicant \
124    wpa_supplicant.conf
125
126PRODUCT_PACKAGES += atmel.fw.apq8084
127
128# OEM Package for RIL
129PRODUCT_PACKAGES += \
130    qmi_motext_hook
131
132# Live Wallpapers
133PRODUCT_PACKAGES += \
134    LiveWallpapersPicker \
135    librs_jni
136
137PRODUCT_PACKAGES += \
138    gralloc.msm8084 \
139    hwcomposer.msm8084 \
140    memtrack.msm8084 \
141    libqdutils \
142    libqdMetaData
143
144PRODUCT_PACKAGES += \
145    libc2dcolorconvert \
146    libstagefrighthw \
147    libOmxCore \
148    libmm-omxcore \
149    libOmxVdec \
150    libOmxVdecHevc \
151    libOmxVenc
152
153PRODUCT_PACKAGES += \
154    audio.primary.msm8084 \
155    audio.a2dp.default \
156    audio.usb.default \
157    audio.r_submix.default \
158    libaudio-resampler
159
160PRODUCT_PROPERTY_OVERRIDES += \
161    ro.audio.monitorRotation=true
162
163# Audio effects
164PRODUCT_PACKAGES += \
165    libqcomvisualizer \
166    libqcomvoiceprocessing \
167    libqcomvoiceprocessingdescriptors
168
169PRODUCT_PACKAGES += \
170    libqomx_core \
171    libmmcamera_interface \
172    libmmjpeg_interface \
173    camera.msm8084 \
174    mm-jpeg-interface-test \
175    mm-qcamera-app
176
177PRODUCT_PACKAGES += \
178    libion
179
180PRODUCT_PACKAGES += \
181    lights.shamu
182
183# Filesystem management tools
184PRODUCT_PACKAGES += \
185    e2fsck
186
187# for off charging mode
188PRODUCT_PACKAGES += \
189    charger_res_images
190
191# for launcher layout
192PRODUCT_PACKAGES += \
193    ShamuLayout
194
195PRODUCT_PACKAGES += \
196    bdAddrLoader
197
198PRODUCT_PACKAGES += \
199    keystore.msm8084
200
201PRODUCT_PACKAGES += \
202    qrngd
203
204PRODUCT_PROPERTY_OVERRIDES += \
205    ro.opengles.version=196608
206
207PRODUCT_PROPERTY_OVERRIDES += \
208    ro.sf.lcd_density=560
209
210PRODUCT_PROPERTY_OVERRIDES += \
211    persist.hwc.mdpcomp.enable=true
212
213PRODUCT_PROPERTY_OVERRIDES += \
214    rild.libpath=/system/vendor/lib/libril-qc-qmi-1.so
215
216PRODUCT_PROPERTY_OVERRIDES += \
217    persist.radio.apm_sim_not_pwdn=1 \
218    persist.radio.no_wait_for_card=1
219
220#Disable QC Oem Hook
221PRODUCT_PROPERTY_OVERRIDES += \
222    persist.radio.oem_socket=false
223
224#Support for graceful UICC Vltg supply deact
225PRODUCT_PROPERTY_OVERRIDES += \
226    persist.qcril_uim_vcc_feature=1
227
228PRODUCT_PROPERTY_OVERRIDES += \
229    ro.telephony.default_cdma_sub=0
230
231# LTE, CDMA, GSM/WCDMA
232PRODUCT_PROPERTY_OVERRIDES += \
233    ro.telephony.default_network=10 \
234    telephony.lteOnCdmaDevice=1
235
236# SIM based FSG loading default enabled
237PRODUCT_PROPERTY_OVERRIDES += \
238    persist.radio.fsg_reload_on=1 \
239
240# Camera configuration
241PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
242    camera.disable_zsl_mode=0
243
244PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
245    persist.camera.HAL3.enabled=1
246
247PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
248    persist.camera.ois.disable=0
249
250# GPS configuration
251PRODUCT_COPY_FILES += \
252    device/moto/shamu/gps.conf:system/etc/gps.conf
253
254# GPS
255PRODUCT_PACKAGES += \
256    libloc_adapter \
257    libloc_eng \
258    libloc_api_v02 \
259    libloc_ds_api \
260    libloc_core \
261    libizat_core \
262    libgeofence \
263    libgps.utils \
264    gps.msm8084 \
265    flp.msm8084 \
266    liblbs_core \
267    flp.conf \
268    gsiff_daemon \
269    sap.conf
270
271# NFC packages
272PRODUCT_PACKAGES += \
273    nfc_nci.bcm2079x.default \
274    NfcNci \
275    Tag
276
277PRODUCT_COPY_FILES += \
278    frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
279    frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
280    device/moto/shamu/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
281    device/moto/shamu/nfc/libnfc-brcm-20795a10.conf:system/etc/libnfc-brcm-20795a10.conf
282
283PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
284    persist.sys.usb.config=mtp
285
286# Modem debugger
287ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
288PRODUCT_PACKAGES += \
289    QXDMLogger
290
291# Disable modem ramdumps
292PRODUCT_PROPERTY_OVERRIDES += \
293    persist.sys.qc.sub.rdump.on=0
294
295PRODUCT_COPY_FILES += \
296    device/moto/shamu/init.shamu.diag.rc.userdebug:root/init.shamu.diag.rc
297else
298PRODUCT_COPY_FILES += \
299    device/moto/shamu/init.shamu.diag.rc.user:root/init.shamu.diag.rc
300endif
301
302# Enable for volte call
303AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := false
304
305PRODUCT_PROPERTY_OVERRIDES += \
306   ro.hwui.texture_cache_size=72 \
307   ro.hwui.layer_cache_size=48 \
308   ro.hwui.r_buffer_cache_size=8 \
309   ro.hwui.path_cache_size=32 \
310   ro.hwui.gradient_cache_size=1 \
311   ro.hwui.drop_shadow_cache_size=6 \
312   ro.hwui.texture_cache_flushrate=0.4 \
313   ro.hwui.text_small_cache_width=1024 \
314   ro.hwui.text_small_cache_height=1024 \
315   ro.hwui.text_large_cache_width=2048 \
316   ro.hwui.text_large_cache_height=1024
317
318
319PRODUCT_PROPERTY_OVERRIDES += \
320   dalvik.vm.heapgrowthlimit=256m
321
322# setup dalvik vm configs.
323$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
324
325$(call inherit-product-if-exists, hardware/qcom/msm8x84/msm8x84.mk)
326$(call inherit-product-if-exists, vendor/qcom/gpu/msm8x84/msm8x84-gpu-vendor.mk)
327
328# setup dm-verity configs.
329PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/msm_sdcc.1/by-name/system
330$(call inherit-product, build/target/product/verity.mk)
331
332# setup scheduler tunable
333PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
334    ro.qualcomm.perf.cores_online=2
335
336PRODUCT_PACKAGES += \
337    power.shamu
338
339PRODUCT_PROPERTY_OVERRIDES += \
340   ro.frp.pst=/dev/block/platform/msm_sdcc.1/by-name/frp
341
342# Delegation for OEM customization
343PRODUCT_OEM_PROPERTIES := \
344    ro.config.ringtone \
345    ro.config.notification_sound \
346    ro.config.alarm_alert \
347    ro.config.wallpaper \
348    ro.config.wallpaper_component \
349    ro.oem.* \
350    oem.*
351