From 0a0768c0c3b58998da5e6263f6e8e919cc0dd926 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sun, 6 Dec 2015 16:42:36 +0100 Subject: [PATCH] msm8226-common: Add ANT+ support commit f96a54a2f5fabf3f977b9c1e397a7b96df84c5c0 Author: Steve Kondik Date: Thu Jul 31 15:07:37 2014 -0700 msm8974: Build ANT+ support Change-Id: I32303d265a7a08c9068f93c8dfc6d324d9c957f9 commit 2ed994e05b6a6591f3505d2084b004c83be99f99 Author: Michael Bestas Date: Thu Sep 4 15:23:53 2014 +0300 msm8974-common: Add missing ANT+ library * Add ANT+ permission and framework library. Change-Id: Ia2efcc04864be8cfe408509f653bba4498e2d30b Change-Id: I910ef05261cf6b9a80600002afbe6461c94c5cf5 --- BoardConfigCommon.mk | 3 +++ msm8226.mk | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index c637901ca747..e9aa0bfc6431 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -49,6 +49,9 @@ BOARD_DTBTOOL_ARGS := --force-v2 BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x01000000 --tags_offset 0x00000100 TARGET_KERNEL_SOURCE := kernel/motorola/msm8226 +# ANT+ +BOARD_ANT_WIRELESS_DEVICE := "qualcomm-smd" + # Audio AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true AUDIO_FEATURE_ENABLED_NEW_SAMPLE_RATE := true diff --git a/msm8226.mk b/msm8226.mk index ff8820960961..520f5c08b19f 100644 --- a/msm8226.mk +++ b/msm8226.mk @@ -23,6 +23,7 @@ DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay # Permissions PRODUCT_COPY_FILES += \ + external/ant-wireless/antradio-library/com.dsi.ant.antradio_library.xml:system/etc/permissions/com.dsi.ant.antradio_library.xml \ frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ @@ -53,6 +54,12 @@ TARGET_SCREEN_WIDTH := 720 $(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk) +# ANT+ +PRODUCT_PACKAGES += \ + AntHalService \ + com.dsi.ant.antradio_library \ + libantradio + # Audio PRODUCT_PACKAGES += \ audiod \