Home | History | Annotate | Download | only in mako
      1 #
      2 # Copyright (C) 2011 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 mako devices, and
     18 # are also specific to mako devices
     19 #
     20 # Everything in this directory will become public
     21 
     22 DEVICE_PACKAGE_OVERLAYS := device/lge/mako/overlay
     23 
     24 # This device is xhdpi.  However the platform doesn't
     25 # currently contain all of the bitmaps at xhdpi density so
     26 # we do this little trick to fall back to the hdpi version
     27 # if the xhdpi doesn't exist.
     28 PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
     29 PRODUCT_AAPT_PREF_CONFIG := xhdpi
     30 
     31 PRODUCT_PACKAGES := \
     32 	lights.msm8960
     33 
     34 PRODUCT_PACKAGES += \
     35     charger_res_images \
     36     charger
     37 
     38 ifneq ($(findstring svelte, $(TARGET_PRODUCT)),)
     39 LOCAL_KERNEL := device/lge/mako_svelte-kernel/kernel
     40 else
     41 LOCAL_KERNEL := device/lge/mako-kernel/kernel
     42 endif
     43 
     44 PRODUCT_COPY_FILES := \
     45 	$(LOCAL_KERNEL):kernel
     46 
     47 PRODUCT_COPY_FILES += \
     48 	device/lge/mako/WCNSS_cfg.dat:system/vendor/firmware/wlan/prima/WCNSS_cfg.dat \
     49 	device/lge/mako/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \
     50 	device/lge/mako/WCNSS_qcom_wlan_nv.bin:system/etc/wifi/WCNSS_qcom_wlan_nv.bin
     51 
     52 PRODUCT_COPY_FILES += \
     53 	device/lge/mako/snd_soc_msm_2x_Fusion3:system/etc/snd_soc_msm/snd_soc_msm_2x_Fusion3 \
     54 	device/lge/mako/audio_policy.conf:system/etc/audio_policy.conf
     55 
     56 PRODUCT_COPY_FILES += \
     57 	device/lge/mako/mixer_paths.xml:system/etc/mixer_paths.xml
     58 
     59 PRODUCT_COPY_FILES += \
     60 	device/lge/mako/thermald-mako.conf:system/etc/thermald.conf
     61 
     62 PRODUCT_COPY_FILES += \
     63 	device/lge/mako/init.mako.rc:root/init.mako.rc \
     64 	device/lge/mako/init.mako.usb.rc:root/init.mako.usb.rc \
     65 	device/lge/mako/fstab.mako:root/fstab.mako \
     66 	device/lge/mako/ueventd.mako.rc:root/ueventd.mako.rc \
     67 	device/lge/mako/media_profiles.xml:system/etc/media_profiles.xml \
     68 	device/lge/mako/media_codecs.xml:system/etc/media_codecs.xml
     69 
     70 # Prebuilt kl and kcm keymaps
     71 PRODUCT_COPY_FILES += \
     72 	device/lge/mako/apq8064-tabla-snd-card_Button_Jack.kl:system/usr/keylayout/apq8064-tabla-snd-card_Button_Jack.kl \
     73 	device/lge/mako/hs_detect.kl:system/usr/keylayout/hs_detect.kl \
     74 	device/lge/mako/pmic8xxx_pwrkey.kl:system/usr/keylayout/pmic8xxx_pwrkey.kl \
     75 	device/lge/mako/keypad_8064.kl:system/usr/keylayout/keypad_8064.kl \
     76 	device/lge/mako/apq8064-tabla-snd-card_Button_Jack.kcm:system/usr/keychars/apq8064-tabla-snd-card_Button_Jack.kcm \
     77 	device/lge/mako/hs_detect.kcm:system/usr/keychars/hs_detect.kcm \
     78 	device/lge/mako/keypad_8064.kcm:system/usr/keychars/keypad_8064.kcm \
     79 	device/lge/mako/pmic8xxx_pwrkey.kcm:system/usr/keychars/pmic8xxx_pwrkey.kcm
     80 
     81 # Prebuilt input device calibration files
     82 PRODUCT_COPY_FILES += \
     83 	device/lge/mako/touch_dev.idc:system/usr/idc/touch_dev.idc
     84 
     85 # These are the hardware-specific features
     86 PRODUCT_COPY_FILES += \
     87 	frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
     88 	frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
     89 	frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.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.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
     98 	frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
     99 	frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
    100 	frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
    101 	frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
    102 	frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
    103 
    104 # NFC packages
    105 PRODUCT_PACKAGES += \
    106     nfc_nci.mako \
    107     NfcNci \
    108     Tag \
    109     com.android.nfc_extras
    110 
    111 # NFCEE access control
    112 ifeq ($(TARGET_BUILD_VARIANT),user)
    113     NFCEE_ACCESS_PATH := device/lge/mako/nfc/nfcee_access.xml
    114 else
    115     NFCEE_ACCESS_PATH := device/lge/mako/nfc/nfcee_access_debug.xml
    116 endif
    117 
    118 # NFC access control + feature files + configuration
    119 PRODUCT_COPY_FILES += \
    120     $(NFCEE_ACCESS_PATH):system/etc/nfcee_access.xml \
    121     frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
    122     frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
    123     frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
    124     device/lge/mako/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf
    125 
    126 PRODUCT_PROPERTY_OVERRIDES += \
    127 	ro.opengles.version=196608
    128 
    129 PRODUCT_PROPERTY_OVERRIDES += \
    130 	ro.sf.lcd_density=320
    131 
    132 # Audio Configuration
    133 # FIXME: Remove persist.audio.handset.mic and persist.audio.fluence.mode
    134 #        while switching new audio HAL from legacy HAL
    135 PRODUCT_PROPERTY_OVERRIDES += \
    136 	persist.audio.handset.mic.type=digital \
    137 	persist.audio.dualmic.config=endfire \
    138 	persist.audio.fluence.voicecall=true \
    139 	persist.audio.handset.mic=dmic \
    140 	persist.audio.fluence.mode=endfire \
    141 	persist.audio.lowlatency.rec=false \
    142 	af.resampler.quality=4
    143 
    144 
    145 # Do not power down SIM card when modem is sent to Low Power Mode.
    146 PRODUCT_PROPERTY_OVERRIDES += \
    147 	persist.radio.apm_sim_not_pwdn=1
    148 
    149 # Ril sends only one RIL_UNSOL_CALL_RING, so set call_ring.multiple to false
    150 PRODUCT_PROPERTY_OVERRIDES += \
    151 	ro.telephony.call_ring.multiple=0
    152 
    153 #Upto 3 layers can go through overlays
    154 PRODUCT_PROPERTY_OVERRIDES += persist.hwc.mdpcomp.enable=true
    155 
    156 PRODUCT_CHARACTERISTICS := nosdcard
    157 
    158 PRODUCT_TAGS += dalvik.gc.type-precise
    159 
    160 PRODUCT_PACKAGES += \
    161 	librs_jni \
    162 	com.android.future.usb.accessory
    163 
    164 # Filesystem management tools
    165 PRODUCT_PACKAGES += \
    166 	e2fsck
    167 
    168 PRODUCT_PACKAGES += \
    169 	libgenlock \
    170 	liboverlay \
    171 	hwcomposer.msm8960 \
    172 	gralloc.msm8960 \
    173 	copybit.msm8960 \
    174 	memtrack.msm8960
    175 
    176 PRODUCT_PACKAGES += \
    177 	audio_policy.msm8960 \
    178 	audio.primary.msm8960 \
    179 	audio.a2dp.default \
    180 	audio.usb.default \
    181 	audio.r_submix.default \
    182 	libaudio-resampler
    183 
    184 # Voice processing
    185 PRODUCT_PACKAGES += libqcomvoiceprocessing
    186 PRODUCT_COPY_FILES += \
    187     device/lge/mako/audio_effects.conf:system/vendor/etc/audio_effects.conf
    188 
    189 PRODUCT_PACKAGES += \
    190 	hci_qcomm_init
    191 
    192 PRODUCT_PACKAGES += \
    193 	power.msm8960
    194 
    195 PRODUCT_COPY_FILES += \
    196 	device/lge/mako/init.mako.bt.sh:system/etc/init.mako.bt.sh
    197 
    198 PRODUCT_PROPERTY_OVERRIDES += \
    199 	ro.qualcomm.bt.hci_transport=smd
    200 
    201 PRODUCT_PACKAGES += \
    202 	camera.mako \
    203 	camera.msm8960 \
    204 	libmmcamera_interface2 \
    205 	libmmcamera_interface
    206 
    207 PRODUCT_PACKAGES += \
    208         libmm-omxcore \
    209 	libdivxdrmdecrypt \
    210 	libOmxVdec \
    211 	libOmxVenc \
    212 	libOmxCore \
    213 	libstagefrighthw \
    214 	libc2dcolorconvert
    215 
    216 # GPS configuration
    217 PRODUCT_COPY_FILES += \
    218         device/lge/mako/gps.conf:system/etc/gps.conf
    219 
    220 # GPS
    221 PRODUCT_PACKAGES += \
    222         libloc_adapter \
    223         libloc_eng \
    224         libloc_api_v02 \
    225         libloc_ds_api \
    226         libloc_core \
    227         libizat_core \
    228         libgeofence \
    229         libgps.utils \
    230         gps.msm8960 \
    231         flp.msm8960
    232 
    233 PRODUCT_PACKAGES += \
    234 	bdAddrLoader \
    235 	libwfcu \
    236 	conn_init
    237 
    238 PRODUCT_PACKAGES += \
    239 	keystore.msm8960
    240 
    241 PRODUCT_PACKAGES += \
    242 	wpa_supplicant_overlay.conf \
    243 	p2p_supplicant_overlay.conf
    244 
    245 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
    246 	rild.libpath=/system/lib/libril-qc-qmi-1.so
    247 
    248 PRODUCT_PROPERTY_OVERRIDES += \
    249 	telephony.lteOnCdmaDevice=0
    250 
    251 PRODUCT_PROPERTY_OVERRIDES += \
    252 	drm.service.enabled=true
    253 
    254 PRODUCT_PROPERTY_OVERRIDES += \
    255 	wifi.interface=wlan0 \
    256 	wifi.supplicant_scan_interval=15
    257 
    258 # Enable AAC 5.1 output
    259 PRODUCT_PROPERTY_OVERRIDES += \
    260     media.aac_51_output_enabled=true
    261 
    262 PRODUCT_PROPERTY_OVERRIDES += \
    263         debug.egl.recordable.rgba8888=1
    264 
    265 PRODUCT_PROPERTY_OVERRIDES += \
    266 	ro.qc.sensors.wl_dis=true \
    267 	ro.qualcomm.sensors.smd=true
    268 
    269 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
    270 	persist.sys.usb.config=mtp
    271 
    272 $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
    273 $(call inherit-product, hardware/qcom/msm8960/msm8960.mk)
    274