blob: 24af5e4869ec812996ff1e9fd919269d47f59b65 [file] [log] [blame]
TARGET_USES_QCOM_BSP := true
TARGET_USES_QCA_NFC := other
ifeq ($(TARGET_USES_QCOM_BSP), true)
# Add QC Video Enhancements flag
TARGET_ENABLE_QC_AV_ENHANCEMENTS := true
endif #TARGET_USES_QCOM_BSP
DEVICE_PACKAGE_OVERLAYS := device/qcom/msm8226/overlay
#TARGET_DISABLE_DASH := true
#TARGET_DISABLE_OMX_SECURE_TEST_APP := true
# media_profiles and media_codecs xmls for 8226
ifeq ($(TARGET_ENABLE_QC_AV_ENHANCEMENTS), true)
PRODUCT_COPY_FILES += device/qcom/msm8226/media/media_profiles_8226.xml:system/etc/media_profiles.xml \
device/qcom/msm8226/media/media_codecs_8226.xml:system/etc/media_codecs.xml
endif
$(call inherit-product, device/qcom/common/common.mk)
PRODUCT_NAME := msm8226
PRODUCT_DEVICE := msm8226
# Audio configuration file
PRODUCT_COPY_FILES += \
device/qcom/msm8226/audio_policy.conf:system/etc/audio_policy.conf \
device/qcom/msm8226/audio_effects.conf:system/vendor/etc/audio_effects.conf \
device/qcom/msm8226/mixer_paths.xml:system/etc/mixer_paths.xml
PRODUCT_PACKAGES += \
libqcomvisualizer \
libqcomvoiceprocessing \
libqcompostprocbundle
# Bluetooth configuration files
#PRODUCT_COPY_FILES += \
system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf
#fstab.qcom
PRODUCT_PACKAGES += fstab.qcom
#wlan driver
PRODUCT_COPY_FILES += \
device/qcom/msm8226/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \
device/qcom/msm8226/WCNSS_qcom_wlan_nv.bin:persist/WCNSS_qcom_wlan_nv.bin
PRODUCT_PACKAGES += \
wpa_supplicant_overlay.conf \
p2p_supplicant_overlay.conf
PRODUCT_PACKAGES += wcnss_service \
pronto_wlan.ko
#ANT stack
PRODUCT_PACKAGES += \
AntHalService \
libantradio \
antradio_app
# NFC packages
ifeq ($(TARGET_USES_QCA_NFC),true)
NFC_D := true
ifeq ($(NFC_D), true)
PRODUCT_PACKAGES += \
libnfcD-nci \
libnfcD_nci_jni \
nfc_nci.msm8226 \
NfcDNci \
Tag \
com.android.nfc_extras \
com.android.nfc.helper \
SmartcardService \
org.simalliance.openmobileapi \
org.simalliance.openmobileapi.xml \
com.android.qcom.nfc_extras \
com.gsma.services.nfc \
libassd
else
PRODUCT_PACKAGES += \
libnfc-nci \
libnfc_nci_jni \
nfc_nci.msm8226 \
NfcNci \
Tag \
com.android.nfc_extras
endif
# file that declares the MIFARE NFC constant
# Commands to migrate prefs from com.android.nfc3 to com.android.nfc
# NFC access control + feature files + configuration
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml
# Enable NFC Forum testing by temporarily changing the PRODUCT_BOOT_JARS
# line has to be in sync with build/target/product/core_base.mk
#PRODUCT_BOOT_JARS := core:conscrypt:okhttp:core-junit:bouncycastle:ext:com.android.nfc.helper:framework:framework2:telephony-common:voip-common:mms-common:android.policy:services:apache-xml:webviewchromium:telephony-msim
ifeq ($(NFC_D), true)
#PRODUCT_BOOT_JARS += org.simalliance.openmobileapi:com.android.qcom.nfc_extras:com.gsma.services.nfc
endif
endif # TARGET_USES_QCA_NFC
PRODUCT_BOOT_JARS += qcmediaplayer \
org.codeaurora.Performance \
vcard \
tcmiface
ifneq ($(strip $(QCPATH)),)
PRODUCT_BOOT_JARS += WfdCommon
PRODUCT_BOOT_JARS += qcom.fmradio
PRODUCT_BOOT_JARS += oem-services
endif
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml
# Enable strict operation
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.strict_op_enable=false
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.whitelist=/system/etc/whitelist_appops.xml
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
camera2.portability.force_api=1
PRODUCT_COPY_FILES += \
device/qcom/msm8226/whitelist_appops.xml:system/etc/whitelist_appops.xml