aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrancocco <shulaibai@hustunique.com>2016-05-02 23:08:12 +0800
committerCosme Domínguez Díaz <cosme.ddiaz@gmail.com>2018-08-02 19:12:20 +0200
commitbea53bae720ff0f8aa61099e1c04e718ec296973 (patch)
tree583ce717d9897b73584a39ebab87be11d90e00ee
parentfa465ad9b38a9a8f0d636be5b4011ba275e5d8af (diff)
msm8996-common: Add ANT+ support
-rw-r--r--BoardConfigCommon.mk3
-rwxr-xr-xmsm8996.mk7
2 files changed, 10 insertions, 0 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index 104d178..1e02af3 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -63,6 +63,9 @@ BOARD_VNDK_VERSION := current
PRODUCT_FULL_TREBLE_OVERRIDE := true
TARGET_VENDOR_PROP += $(VENDOR_PATH)/vendor.prop
+# ANT+
+BOARD_ANT_WIRELESS_DEVICE := "qualcomm-uart"
+
# Audio
AUDIO_FEATURE_ENABLED_ACDB_LICENSE := true
AUDIO_FEATURE_ENABLED_ALAC_OFFLOAD := true
diff --git a/msm8996.mk b/msm8996.mk
index 4ca7ca0..72327f1 100755
--- a/msm8996.mk
+++ b/msm8996.mk
@@ -44,6 +44,7 @@ TARGET_SCREEN_WIDTH := 1080
# Permissions
PRODUCT_COPY_FILES += \
+ external/ant-wireless/antradio-library/com.dsi.ant.antradio_library.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.dsi.ant.antradio_library.xml \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
@@ -85,6 +86,12 @@ PRODUCT_CHARACTERISTICS := nosdcard
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
+# ANT+
+PRODUCT_PACKAGES += \
+ AntHalService \
+ com.dsi.ant.antradio_library \
+ libantradio
+
# Audio
PRODUCT_PACKAGES += \
android.hardware.audio@2.0-impl \