Home | History | Annotate | Download | only in flo
      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 msm8960 devices, and
     18 # are also specific to msm8960 devices
     19 #
     20 # Everything in this directory will become public
     21 
     22 ifeq ($(TARGET_PREBUILT_KERNEL),)
     23 LOCAL_KERNEL := device/asus/flo-kernel/kernel
     24 else
     25 LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
     26 endif
     27 
     28 PRODUCT_COPY_FILES := \
     29 	$(LOCAL_KERNEL):kernel
     30 
     31 # This device is xhdpi.  However the platform doesn't
     32 # currently contain all of the bitmaps at xhdpi density so
     33 # we do this little trick to fall back to the hdpi version
     34 # if the xhdpi doesn't exist.
     35 PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
     36 PRODUCT_AAPT_PREF_CONFIG := xhdpi
     37 
     38 PRODUCT_PACKAGES := \
     39 	lights.msm8960
     40 
     41 PRODUCT_PACKAGES += \
     42     charger_res_images \
     43     charger
     44 
     45 # Live Wallpapers
     46 PRODUCT_PACKAGES += \
     47         LiveWallpapers \
     48         LiveWallpapersPicker \
     49         VisualizationWallpapers \
     50         librs_jni
     51 
     52 PRODUCT_COPY_FILES += \
     53 	device/asus/flo/WCNSS_cfg.dat:system/vendor/firmware/wlan/prima/WCNSS_cfg.dat \
     54 	device/asus/flo/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \
     55 	device/asus/flo/WCNSS_qcom_wlan_nv_flo.bin:system/etc/wifi/WCNSS_qcom_wlan_nv_flo.bin \
     56 	device/asus/flo/WCNSS_qcom_wlan_nv_deb.bin:system/etc/wifi/WCNSS_qcom_wlan_nv_deb.bin \
     57 	device/asus/flo/init.flo.wifi.sh:system/etc/init.flo.wifi.sh
     58 
     59 PRODUCT_COPY_FILES += \
     60 	device/asus/flo/snd_soc_msm_2x_Fusion3:system/etc/snd_soc_msm/snd_soc_msm_2x_Fusion3 \
     61 	device/asus/flo/snd_soc_msm_2x_Fusion3:system/etc/snd_soc_msm/snd_soc_msm_2x \
     62 	device/asus/flo/audio_policy.conf:system/etc/audio_policy.conf
     63 
     64 PRODUCT_COPY_FILES += \
     65 	device/asus/flo/mixer_paths.xml:system/etc/mixer_paths.xml \
     66 	device/asus/flo/sec_config:system/etc/sec_config
     67 
     68 PRODUCT_COPY_FILES += \
     69 	device/asus/flo/thermald-flo.conf:system/etc/thermald.conf
     70 
     71 PRODUCT_COPY_FILES += \
     72 	device/asus/flo/init.flo.usb.rc:root/init.flo.usb.rc \
     73 	device/asus/flo/ueventd.flo.rc:root/ueventd.flo.rc \
     74 	device/asus/flo/media_profiles.xml:system/etc/media_profiles.xml \
     75 	device/asus/flo/media_codecs.xml:system/etc/media_codecs.xml
     76 
     77 PRODUCT_COPY_FILES += \
     78 	device/asus/flo/kickstart_checker.sh:system/etc/kickstart_checker.sh
     79 
     80 # Prebuilt kl and kcm keymaps
     81 PRODUCT_COPY_FILES += \
     82 	device/asus/flo/apq8064-tabla-snd-card_Button_Jack.kl:system/usr/keylayout/apq8064-tabla-snd-card_Button_Jack.kl \
     83 	device/asus/flo/hs_detect.kl:system/usr/keylayout/hs_detect.kl \
     84 	device/asus/flo/pmic8xxx_pwrkey.kl:system/usr/keylayout/pmic8xxx_pwrkey.kl \
     85 	device/asus/flo/keypad_8064.kl:system/usr/keylayout/keypad_8064.kl \
     86 	device/asus/flo/apq8064-tabla-snd-card_Button_Jack.kcm:system/usr/keychars/apq8064-tabla-snd-card_Button_Jack.kcm \
     87 	device/asus/flo/hs_detect.kcm:system/usr/keychars/hs_detect.kcm \
     88 	device/asus/flo/keypad_8064.kcm:system/usr/keychars/keypad_8064.kcm \
     89 	device/asus/flo/pmic8xxx_pwrkey.kcm:system/usr/keychars/pmic8xxx_pwrkey.kcm
     90 
     91 # Prebuilt input device calibration files
     92 PRODUCT_COPY_FILES += \
     93 	device/asus/flo/touch_dev.idc:system/usr/idc/touch_dev.idc
     94 
     95 # TP idc file
     96 PRODUCT_COPY_FILES += \
     97 	device/asus/flo/elan-touchscreen.idc:system/usr/idc/elan-touchscreen.idc
     98 
     99 # These are the hardware-specific features
    100 PRODUCT_COPY_FILES += \
    101 	frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
    102 	frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
    103 	frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
    104 	frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
    105 	frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
    106 	frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
    107 	frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
    108 	frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
    109 	frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
    110 	frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
    111 	frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
    112 	frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
    113 	frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
    114 	frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
    115 
    116 PRODUCT_PROPERTY_OVERRIDES += \
    117 	ro.opengles.version=196608
    118 
    119 PRODUCT_PROPERTY_OVERRIDES += \
    120 	ro.sf.lcd_density=320
    121 
    122 # Audio Configuration
    123 PRODUCT_PROPERTY_OVERRIDES += \
    124 	persist.audio.handset.mic=dmic \
    125 	persist.audio.fluence.mode=endfire \
    126 	persist.audio.lowlatency.rec=false \
    127 	af.resampler.quality=4
    128 
    129 # Camera Configuration
    130 PRODUCT_PROPERTY_OVERRIDES += \
    131 	camera.disable_zsl_mode=1
    132 
    133 # Kickstart
    134 PRODUCT_PACKAGES += \
    135 	qcks \
    136 	ks \
    137 	efsks
    138 
    139 #Enable MDP composition by default
    140 PRODUCT_PROPERTY_OVERRIDES += \
    141 	persist.hwc.mdpcomp.enable=true
    142 
    143 PRODUCT_CHARACTERISTICS := tablet,nosdcard
    144 
    145 PRODUCT_TAGS += dalvik.gc.type-precise
    146 
    147 PRODUCT_PACKAGES += \
    148 	librs_jni \
    149 	com.android.future.usb.accessory
    150 
    151 # Filesystem management tools
    152 PRODUCT_PACKAGES += \
    153 	e2fsck \
    154 	setup_fs
    155 
    156 PRODUCT_PACKAGES += \
    157 	libgenlock \
    158 	liboverlay \
    159 	hwcomposer.msm8960 \
    160 	gralloc.msm8960 \
    161 	copybit.msm8960 \
    162 	keystore.msm8960 \
    163 	memtrack.msm8960
    164 
    165 PRODUCT_PACKAGES += \
    166 	alsa.msm8960 \
    167 	audio_policy.msm8960 \
    168 	audio.primary.msm8960 \
    169 	audio.a2dp.default \
    170 	audio.usb.default \
    171 	audio.r_submix.default \
    172 	libaudio-resampler
    173 
    174 # Voice processing
    175 PRODUCT_PACKAGES += \
    176     libqcomvoiceprocessing \
    177     libqcomvoiceprocessingdescriptors
    178 PRODUCT_COPY_FILES += \
    179     device/asus/flo/audio_effects.conf:system/vendor/etc/audio_effects.conf
    180 
    181 # Monitor device rotation for speaker channel swap
    182 PRODUCT_PROPERTY_OVERRIDES += \
    183 	ro.audio.monitorRotation=true
    184 
    185 PRODUCT_PACKAGES += \
    186 	hci_qcomm_init
    187 
    188 PRODUCT_PACKAGES += \
    189 	power.msm8960
    190 
    191 PRODUCT_COPY_FILES += \
    192 	device/asus/flo/init.flo.bt.sh:system/etc/init.flo.bt.sh
    193 
    194 PRODUCT_PROPERTY_OVERRIDES += \
    195 	ro.qualcomm.bt.hci_transport=smd
    196 
    197 PRODUCT_PACKAGES += \
    198 	libmmcamera_interface2 \
    199 	libmmcamera_interface \
    200 	libqomx_core
    201 
    202 PRODUCT_PACKAGES += \
    203 	mm-vdec-omx-test \
    204 	mm-venc-omx-test720p \
    205 	libdivxdrmdecrypt \
    206 	libOmxVdec \
    207 	libOmxVenc \
    208 	libOmxCore \
    209 	libstagefrighthw \
    210 	libc2dcolorconvert
    211 
    212 # GPS
    213 PRODUCT_PACKAGES += \
    214         libloc_adapter \
    215         libloc_eng \
    216         libloc_api_v02 \
    217         libloc_ds_api \
    218         libloc_core \
    219         libizat_core \
    220         libgeofence \
    221         libgps.utils \
    222         gps.conf \
    223         gps.msm8960 \
    224         flp.msm8960
    225 
    226 PRODUCT_PACKAGES += \
    227 	bdAddrLoader \
    228 	libwfcu \
    229 	conn_init \
    230 	charger_touch
    231 
    232 PRODUCT_PACKAGES += \
    233 	wpa_supplicant_overlay.conf \
    234 	p2p_supplicant_overlay.conf
    235 
    236 PRODUCT_PROPERTY_OVERRIDES += \
    237 	drm.service.enabled=true
    238 
    239 PRODUCT_PROPERTY_OVERRIDES += \
    240 	wifi.interface=wlan0 \
    241 	wifi.supplicant_scan_interval=15
    242 
    243 # Enable AAC 5.1 output
    244 PRODUCT_PROPERTY_OVERRIDES += \
    245 	media.aac_51_output_enabled=true
    246 
    247 PRODUCT_PROPERTY_OVERRIDES += \
    248         debug.egl.recordable.rgba8888=1
    249 
    250 PRODUCT_PROPERTY_OVERRIDES += \
    251         ro.qc.sensors.wl_dis=true \
    252         ro.qualcomm.sensors.smd=true
    253 
    254 PRODUCT_PROPERTY_OVERRIDES += \
    255 	ro.qualcomm.cabl=1 \
    256 	hw.cabl.level=Auto \
    257 	persist.qcom.cabl.video_only=1
    258 
    259 
    260 # Configure libhwui
    261 PRODUCT_PROPERTY_OVERRIDES += \
    262 	ro.hwui.texture_cache_size=48 \
    263 	ro.hwui.layer_cache_size=32 \
    264 	ro.hwui.r_buffer_cache_size=4 \
    265 	ro.hwui.path_cache_size=24 \
    266 	ro.hwui.gradient_cache_size=1 \
    267 	ro.hwui.drop_shadow_cache_size=5 \
    268 	ro.hwui.texture_cache_flushrate=0.5 \
    269 	ro.hwui.text_small_cache_width=1024 \
    270 	ro.hwui.text_small_cache_height=1024 \
    271 	ro.hwui.text_large_cache_width=2048 \
    272 	ro.hwui.text_large_cache_height=1024
    273 
    274 # NFC packages
    275 PRODUCT_PACKAGES += \
    276     libnfc-nci \
    277     libnfc_nci_jni \
    278     NfcNci \
    279     Tag
    280 
    281 PRODUCT_COPY_FILES += \
    282     frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
    283     frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
    284     device/asus/flo/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
    285     device/asus/flo/nfc/libnfc-brcm-20791b05.conf:system/etc/libnfc-brcm-20791b05.conf
    286 
    287 PRODUCT_LOCALES := en_US es_US de_DE zh_CN
    288 
    289 $(call inherit-product, frameworks/native/build/tablet-7in-xhdpi-2048-dalvik-heap.mk)
    290 $(call inherit-product, hardware/qcom/msm8960/msm8960.mk)
    291