From 2c17c0fd506c40b3fcea43581dfd51242fbca5de Mon Sep 17 00:00:00 2001 From: Valera1978 Date: Sat, 14 Dec 2019 17:13:27 +0300 Subject: [PATCH] switch to sensors from sources --- configs/sensors/_hals.conf | 1 + device.mk | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 configs/sensors/_hals.conf diff --git a/configs/sensors/_hals.conf b/configs/sensors/_hals.conf new file mode 100644 index 0000000..644e254 --- /dev/null +++ b/configs/sensors/_hals.conf @@ -0,0 +1 @@ +/vendor/lib/hw/sensors.vendor.msm8974.so \ No newline at end of file diff --git a/device.mk b/device.mk index 1307f20..e732ca6 100755 --- a/device.mk +++ b/device.mk @@ -229,7 +229,11 @@ PRODUCT_COPY_FILES += \ # Sensors PRODUCT_PACKAGES += \ android.hardware.sensors@1.0-impl.samsung8974 \ - android.hardware.sensors@1.0-service.samsung8974 + android.hardware.sensors@1.0-service.samsung8974 \ + sensors.msm8974 + +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/sensors/_hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/_hals.conf # Touch features PRODUCT_PACKAGES += \