| # |
| # Copyright (C) 2013 The Android Open-Source Project |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| # |
| |
| # This file includes all definitions that apply to ALL hammerhead devices, and |
| # are also specific to hammerhead devices |
| # |
| # Everything in this directory will become public |
| |
| |
| LOCAL_KERNEL := device/lge/hammerhead-kernel/kernel |
| |
| PRODUCT_COPY_FILES := \ |
| $(LOCAL_KERNEL):kernel |
| |
| PRODUCT_COPY_FILES += \ |
| device/lge/hammerhead/init.hammerhead.rc:root/init.hammerhead.rc \ |
| device/lge/hammerhead/init.hammerhead.usb.rc:root/init.hammerhead.usb.rc \ |
| device/lge/hammerhead/fstab.hammerhead:root/fstab.hammerhead \ |
| device/lge/hammerhead/ueventd.hammerhead.rc:root/ueventd.hammerhead.rc |
| |
| # Input device files for hammerhead |
| #PRODUCT_COPY_FILES += \ |
| |
| #PRODUCT_COPY_FILES += \ |
| # device/lge/hammerhead/mixer_paths.xml:system/etc/mixer_paths.xml |
| |
| #PRODUCT_COPY_FILES += \ |
| # device/lge/hammerhead/audio_policy.conf:system/etc/audio_policy.conf |
| |
| |
| # These are the hardware-specific features |
| PRODUCT_COPY_FILES += \ |
| frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ |
| frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ |
| frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ |
| frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ |
| frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ |
| frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ |
| frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ |
| frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ |
| frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ |
| frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ |
| frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ |
| frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ |
| frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml |
| |
| PRODUCT_TAGS += dalvik.gc.type-precise |
| |
| # This device is xhdpi. However the platform doesn't |
| # currently contain all of the bitmaps at xhdpi density so |
| # we do this little trick to fall back to the hdpi version |
| # if the xhdpi doesn't exist. |
| PRODUCT_AAPT_CONFIG := normal hdpi xhdpi |
| PRODUCT_AAPT_PREF_CONFIG := xhdpi |
| |
| PRODUCT_CHARACTERISTICS := nosdcard |
| |
| DEVICE_PACKAGE_OVERLAYS := \ |
| device/lge/hammerhead/overlay |
| |
| # Live Wallpapers |
| PRODUCT_PACKAGES += \ |
| LiveWallpapers \ |
| LiveWallpapersPicker \ |
| MagicSmokeWallpapers \ |
| VisualizationWallpapers \ |
| librs_jni |
| |
| PRODUCT_PACKAGES += \ |
| gralloc.msm8x74 \ |
| libgenlock \ |
| lights.msm8x74 \ |
| hwcomposer.msm8x74 |
| |
| PRODUCT_PACKAGES += \ |
| libion |
| |
| PRODUCT_PACKAGES += \ |
| librs_jni \ |
| com.android.future.usb.accessory |
| |
| # Filesystem management tools |
| PRODUCT_PACKAGES += \ |
| e2fsck |
| |
| # for off charging mode |
| PRODUCT_PACKAGES += \ |
| charger \ |
| charger_res_images |
| |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| ro.opengles.version=131072 |
| |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| ro.sf.lcd_density=320 |
| |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| persist.hwc.mdpcomp.enable=true |
| |
| PRODUCT_PROPERTY_OVERRIDES += \ |
| ro.hwui.texture_cache_size=72 \ |
| ro.hwui.layer_cache_size=48 \ |
| ro.hwui.r_buffer_cache_size=8 \ |
| ro.hwui.path_cache_size=32 \ |
| ro.hwui.gradient_cache_size=1 \ |
| ro.hwui.drop_shadow_cache_size=6 \ |
| ro.hwui.texture_cache_flushrate=0.4 \ |
| ro.hwui.text_small_cache_width=1024 \ |
| ro.hwui.text_small_cache_height=1024 \ |
| ro.hwui.text_large_cache_width=2048 \ |
| ro.hwui.text_large_cache_height=1024 |
| |
| # set default USB configuration |
| PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| persist.sys.usb.config=mtp |
| |
| # setup dalvik vm configs. |
| $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) |
| |
| $(call inherit-product-if-exists, hardware/qcom/msm8x74/msm8x74.mk) |
| $(call inherit-product-if-exists, vendor/qcom/gpu/msm8x74/msm8x74-gpu-vendor.mk) |