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