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 # GPS configuration 117 PRODUCT_COPY_FILES += \ 118 device/asus/flo/gps.conf:system/etc/gps.conf 119 120 PRODUCT_PROPERTY_OVERRIDES += \ 121 ro.opengles.version=196608 122 123 PRODUCT_PROPERTY_OVERRIDES += \ 124 ro.sf.lcd_density=320 125 126 # Audio Configuration 127 PRODUCT_PROPERTY_OVERRIDES += \ 128 persist.audio.handset.mic=dmic \ 129 persist.audio.fluence.mode=endfire \ 130 persist.audio.lowlatency.rec=false \ 131 af.resampler.quality=4 132 133 # Camera Configuration 134 PRODUCT_PROPERTY_OVERRIDES += \ 135 camera.disable_zsl_mode=1 136 137 # Kickstart 138 PRODUCT_PACKAGES += \ 139 qcks \ 140 ks \ 141 efsks 142 143 #Enable MDP composition by default 144 PRODUCT_PROPERTY_OVERRIDES += \ 145 persist.hwc.mdpcomp.enable=true 146 147 PRODUCT_CHARACTERISTICS := tablet,nosdcard 148 149 PRODUCT_TAGS += dalvik.gc.type-precise 150 151 PRODUCT_PACKAGES += \ 152 librs_jni \ 153 com.android.future.usb.accessory 154 155 # Filesystem management tools 156 PRODUCT_PACKAGES += \ 157 e2fsck \ 158 setup_fs 159 160 PRODUCT_PACKAGES += \ 161 libgenlock \ 162 liboverlay \ 163 hwcomposer.msm8960 \ 164 gralloc.msm8960 \ 165 copybit.msm8960 \ 166 keystore.msm8960 167 168 PRODUCT_PACKAGES += \ 169 alsa.msm8960 \ 170 audio_policy.msm8960 \ 171 audio.primary.msm8960 \ 172 audio.a2dp.default \ 173 audio.usb.default \ 174 audio.r_submix.default \ 175 libaudio-resampler 176 177 # Voice processing 178 PRODUCT_PACKAGES += \ 179 libqcomvoiceprocessing \ 180 libqcomvoiceprocessingdescriptors 181 PRODUCT_COPY_FILES += \ 182 device/asus/flo/audio_effects.conf:system/vendor/etc/audio_effects.conf 183 184 # Monitor device rotation for speaker channel swap 185 PRODUCT_PROPERTY_OVERRIDES += \ 186 ro.audio.monitorRotation=true 187 188 PRODUCT_PACKAGES += \ 189 hci_qcomm_init 190 191 PRODUCT_PACKAGES += \ 192 power.msm8960 193 194 PRODUCT_COPY_FILES += \ 195 device/asus/flo/init.flo.bt.sh:system/etc/init.flo.bt.sh 196 197 PRODUCT_PROPERTY_OVERRIDES += \ 198 ro.qualcomm.bt.hci_transport=smd 199 200 PRODUCT_PACKAGES += \ 201 libmmcamera_interface2 \ 202 libmmcamera_interface \ 203 libqomx_core 204 205 PRODUCT_PACKAGES += \ 206 mm-vdec-omx-test \ 207 mm-venc-omx-test720p \ 208 libdivxdrmdecrypt \ 209 libOmxVdec \ 210 libOmxVenc \ 211 libOmxCore \ 212 libstagefrighthw \ 213 libc2dcolorconvert 214 215 PRODUCT_PACKAGES += \ 216 libloc_adapter \ 217 libloc_eng \ 218 libloc_api_v02 \ 219 libgps.utils \ 220 gps.msm8960 221 222 PRODUCT_PACKAGES += \ 223 bdAddrLoader \ 224 libwfcu \ 225 conn_init \ 226 charger_touch 227 228 PRODUCT_PACKAGES += \ 229 wpa_supplicant_overlay.conf \ 230 p2p_supplicant_overlay.conf 231 232 PRODUCT_PROPERTY_OVERRIDES += \ 233 drm.service.enabled=true 234 235 PRODUCT_PROPERTY_OVERRIDES += \ 236 wifi.interface=wlan0 \ 237 wifi.supplicant_scan_interval=15 238 239 # Enable AAC 5.1 output 240 PRODUCT_PROPERTY_OVERRIDES += \ 241 media.aac_51_output_enabled=true 242 243 PRODUCT_PROPERTY_OVERRIDES += \ 244 debug.egl.recordable.rgba8888=1 245 246 PRODUCT_PROPERTY_OVERRIDES += \ 247 ro.qc.sensors.wl_dis=true \ 248 ro.qualcomm.sensors.smd=true 249 250 PRODUCT_PROPERTY_OVERRIDES += \ 251 ro.qualcomm.cabl=1 \ 252 hw.cabl.level=Auto \ 253 persist.qcom.cabl.video_only=1 254 255 256 # Configure libhwui 257 PRODUCT_PROPERTY_OVERRIDES += \ 258 ro.hwui.texture_cache_size=48 \ 259 ro.hwui.layer_cache_size=32 \ 260 ro.hwui.r_buffer_cache_size=4 \ 261 ro.hwui.path_cache_size=24 \ 262 ro.hwui.gradient_cache_size=1 \ 263 ro.hwui.drop_shadow_cache_size=5 \ 264 ro.hwui.texture_cache_flushrate=0.5 \ 265 ro.hwui.text_small_cache_width=1024 \ 266 ro.hwui.text_small_cache_height=1024 \ 267 ro.hwui.text_large_cache_width=2048 \ 268 ro.hwui.text_large_cache_height=1024 269 270 # NFC packages 271 PRODUCT_PACKAGES += \ 272 libnfc-nci \ 273 libnfc_nci_jni \ 274 NfcNci \ 275 Tag 276 277 PRODUCT_COPY_FILES += \ 278 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ 279 device/asus/flo/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \ 280 device/asus/flo/nfc/libnfc-brcm-20791b05.conf:system/etc/libnfc-brcm-20791b05.conf 281 282 PRODUCT_LOCALES := en_US es_US de_DE zh_CN 283 284 $(call inherit-product, frameworks/native/build/tablet-7in-xhdpi-2048-dalvik-heap.mk) 285 $(call inherit-product, hardware/qcom/msm8960/msm8960.mk) 286