From 972168985d3ee8f9c881f645116a313468204899 Mon Sep 17 00:00:00 2001 From: Thierry Strudel Date: Fri, 7 Oct 2016 18:35:26 -0700 Subject: [PATCH] Build GPS HAL Change-Id: I7d9aaa793406c927d172001c9b4a65bbe918dd74 --- CommonBoardConfig.mk | 2 ++ device-common.mk | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/CommonBoardConfig.mk b/CommonBoardConfig.mk index 09539ae..4aec7f3 100644 --- a/CommonBoardConfig.mk +++ b/CommonBoardConfig.mk @@ -66,6 +66,8 @@ TARGET_USES_ION := true # GPS TARGET_NO_RPC := true +BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default +BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true # Sensors USE_SENSOR_MULTI_HAL := true diff --git a/device-common.mk b/device-common.mk index 17e78a9..c437540 100644 --- a/device-common.mk +++ b/device-common.mk @@ -71,6 +71,7 @@ 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 \ frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:system/etc/permissions/android.hardware.sensor.hifi_sensors.xml \ + frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/init.power.sh:system/bin/init.power.sh \ @@ -104,5 +105,14 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/sec_config:system/etc/sec_config +PRODUCT_PACKAGES += \ + gps.conf \ + gps.default \ + libgps.utils \ + libloc_eng \ + libloc_api_v02 \ + libloc_ds_api \ + libgnsspps + # setup dalvik vm configs $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)