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