blob: bfa570374f21ddee96503ab27086146fd15270bf [file] [log] [blame]
#
# Copyright (C) 2011 The CyanogenMod 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.
#
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# common msm8960 configs
$(call inherit-product, device/htc/msm8960-common/msm8960.mk)
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Ramdisk
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/root/init.m7.rc:root/init.m7.rc \
$(LOCAL_PATH)/root/init.post_mount.sh:root/init.post_mount.sh \
$(LOCAL_PATH)/root/init.m7.usb.rc:root/init.m7.usb.rc \
$(LOCAL_PATH)/root/ueventd.m7.rc:root/ueventd.m7.rc \
$(LOCAL_PATH)/configs/init.post_boot.sh:/system/etc/init.post_boot.sh
# Custom recovery charging
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/sbin/choice_fn:recovery/root/sbin/choice_fn \
$(LOCAL_PATH)/recovery/sbin/offmode_charging:recovery/root/sbin/offmode_charging \
$(LOCAL_PATH)/recovery/sbin/detect_key:recovery/root/sbin/detect_key \
$(LOCAL_PATH)/recovery/sbin/power_test:recovery/root/sbin/power_test
# QC thermald config
PRODUCT_COPY_FILES += $(LOCAL_PATH)/configs/thermald.conf:system/etc/thermald.conf
# Vold config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/vold.fstab:system/etc/vold.fstab
PRODUCT_PACKAGES += \
libnetcmdiface
# Wifi config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/calibration:/system/etc/calibration \
$(LOCAL_PATH)/configs/calibration_EMEA:/system/etc/calibration_EMEA
# Sound configs
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/dsp/soundimage/srs_bypass.cfg:system/etc/soundimage/srs_bypass.cfg \
$(LOCAL_PATH)/dsp/soundimage/srsfx_trumedia_51.cfg:system/etc/soundimage/srsfx_trumedia_51.cfg \
$(LOCAL_PATH)/dsp/soundimage/srsfx_trumedia_movie.cfg:system/etc/soundimage/srsfx_trumedia_movie.cfg \
$(LOCAL_PATH)/dsp/soundimage/srsfx_trumedia_music.cfg:system/etc/soundimage/srsfx_trumedia_music.cfg \
$(LOCAL_PATH)/dsp/soundimage/srsfx_trumedia_voice.cfg:system/etc/soundimage/srsfx_trumedia_voice.cfg \
$(LOCAL_PATH)/dsp/soundimage/srs_geq10.cfg:system/etc/soundimage/srs_geq10.cfg \
$(LOCAL_PATH)/dsp/soundimage/srs_global.cfg:system/etc/soundimage/srs_global.cfg
# Media config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/configs/AudioBTID.csv:system/etc/AudioBTID.csv \
$(LOCAL_PATH)/configs/AudioBTIDnew.csv:system/etc/AudioBTIDnew.csvs \
$(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/dsp/snd_soc_msm/snd_soc_msm:system/etc/snd_soc_msm/snd_soc_msm \
$(LOCAL_PATH)/dsp/snd_soc_msm/snd_soc_msm_2x:system/etc/snd_soc_msm/snd_soc_msm_2x \
$(LOCAL_PATH)/dsp/snd_soc_msm/snd_soc_msm_2x_Fusion3:system/etc/snd_soc_msm/snd_soc_msm_2x_Fusion3 \
$(LOCAL_PATH)/dsp/snd_soc_msm/snd_soc_msm_2x_Fusion3_DMIC:system/etc/snd_soc_msm/snd_soc_msm_2x_Fusion3_DMIC \
$(LOCAL_PATH)/dsp/snd_soc_msm/snd_soc_msm_Sitar:system/etc/snd_soc_msm/snd_soc_msm_Sitar
# Keylayouts and Keychars
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/h2w_headset.kl:system/usr/keylayout/h2w_headset.kl \
$(LOCAL_PATH)/keylayout/keypad_8960.kl:system/usr/keylayout/keypad_8960.kl \
$(LOCAL_PATH)/keylayout/projector-Keypad.kl:system/usr/keylayout/projector-Keypad.kl \
$(LOCAL_PATH)/keylayout/synaptics-rmi-touchscreen.kl:system/usr/keylayout/synaptics-rmi-touchscreen.kl \
# Input device config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/idc/projector_input.idc:system/usr/idc/projector_input.idc \
$(LOCAL_PATH)/idc/synaptics-rmi-touchscreen.idc:system/usr/idc/synaptics-rmi-touchscreen.idc
# Audio
PRODUCT_PACKAGES += \
alsa.msm8960 \
audio.a2dp.default \
audio_policy.msm8960 \
audio.primary.msm8960 \
audio.r_submix.default \
audio.usb.default \
libaudio-resampler
# Bluetooth
PRODUCT_PACKAGES += \
hci_qcomm_init
# Camera
PRODUCT_PACKAGES += \
camera.msm8960
# GPS
PRODUCT_PACKAGES += \
libloc_adapter \
libloc_eng \
libgps.utils \
gps.msm8960
# Graphics
PRODUCT_PACKAGES += \
copybit.msm8960 \
gralloc.msm8960 \
hwcomposer.msm8960 \
libgenlock \
liboverlay
# Lights
PRODUCT_PACKAGES += \
lights.msm8960
# OMX
PRODUCT_PACKAGES += \
libc2dcolorconvert \
libdivxdrmdecrypt \
libOmxCore \
libOmxVdec \
libOmxVenc \
libOmxAacEnc \
libOmxAmrEnc \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libstagefrighthw
# Power
PRODUCT_PACKAGES += \
power.msm8960
# HDMI
PRODUCT_PACKAGES += \
hdmid
# QCOM rngd
PRODUCT_PACKAGES += \
qrngd
# USB
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# Filesystem management tools
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs
# NFC
PRODUCT_PACKAGES += \
libnfc \
libnfc_ndef \
libnfc_jni \
Nfc \
Tag \
com.android.nfc_extras
# Torch
PRODUCT_PACKAGES += \
Torch
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
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.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.hardwardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.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.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.compass.xml \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml
# GPS config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/gps.conf:system/etc/gps.conf
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp,adb
# TODO go through this stuff
# Common build properties
PRODUCT_PROPERTY_OVERRIDES += \
com.qc.hardware=true \
debug.composition.type=dyn \
debug.egl.hw=1 \
debug.mdpcomp.logs=0 \
debug.sf.hw=1 \
dev.pm.dyn_samplingrate=1 \
lpa.decode=true \
persist.audio.fluence.mode=endfire \
persist.audio.vr.enable=false \
persist.audio.handset.mic=digital \
persist.audio.speaker.location=high \
persist.gps.qmienabled=true \
persist.hwc.mdpcomp.enable=true \
persist.thermal.monitor=true \
ro.baseband.arch=msm \
ro.opengles.version=131072 \
ro.product.wireless=WCN3660 \
ro.qc.sdk.audio.fluencetype=fluence \
ro.qualcomm.bt.hci_transport=smd \
ro.use_data_netmgrd=true \
wifi.interface=wlan0 \
dalvik.vm.dexopt-data-only=1 \
ro.sf.lcd_density=480 \
rild.libargs=-d /dev/smd0 \
rild.libpath=/system/lib/libril-qc-qmi-1.so \
ro.vendor.extension_library=/system/lib/libqc-opt.so \
ril.subscription.types=NV,RUIM \
ro.telephony.ril.v3=subscriptionFromSource,skipCdmaSubcription \
keyguard.no_require_sim=true \
DEVICE_PROVISIONED=1 \
ro.config.svlte1x=true \
ro.cdma.subscribe_on_ruim_ready=true \
persist.radio.no_wait_for_card=1 \
ro.ril.gprsclass=10 \
ro.ril.hsxpa=1 \
persist.radio.add_power_save=1 \
persist.radio.snapshot_disabled=1 \
persist.radio.apm_sim_not_pwdn=1 \
ro.telephony.call_ring.multiple=0 \
ro.ril.transmitpower=true \
ro.use_data_netmgrd=true \
persist.data_netmgrd_nint=16 \
persist.cne.UseCne=false \
ro.baseband.arch = mdm \
debug.nfc.fw_download=true \
debug.nfc.fw_boot_download=false \
debug.nfc.se=true \
ro.nfc.port=I2C \
persist.timed.enable=true
# Set build date
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
# Device uses high-density artwork where available
PRODUCT_AAPT_CONFIG := normal hdpi xhdpi xxhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi xxhdpi
# call dalvik heap config
$(call inherit-product-if-exists, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)