From 39e754461811060e5574454c887326d82d58c9a2 Mon Sep 17 00:00:00 2001 From: Cosmin Tanislav Date: Sun, 20 Feb 2022 19:21:09 +0200 Subject: [PATCH] zeus: Add support for udfps long press sensor Change-Id: I7196dce967c9adbc62bb5156ade749c92c7780a1 --- BoardConfig.mk | 3 +++ device.mk | 4 ++++ overlay/Frameworks/res/values/config.xml | 3 +++ properties/vendor.prop | 2 ++ sensors/hals.conf | 4 ++++ 5 files changed, 16 insertions(+) create mode 100644 properties/vendor.prop create mode 100644 sensors/hals.conf diff --git a/BoardConfig.mk b/BoardConfig.mk index 97feb7c..8de5b02 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -12,5 +12,8 @@ include vendor/xiaomi/zeus/BoardConfigVendor.mk DEVICE_PATH := device/xiaomi/zeus +# Properties +TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop + # Screen density TARGET_SCREEN_DENSITY := 560 diff --git a/device.mk b/device.mk index 8a90df8..36ada9f 100644 --- a/device.mk +++ b/device.mk @@ -17,6 +17,10 @@ PRODUCT_PACKAGES += \ SystemUIResZeus \ WifiResZeus +# Sensors +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf + # Soong namespaces PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH) diff --git a/overlay/Frameworks/res/values/config.xml b/overlay/Frameworks/res/values/config.xml index c511a13..7ebea85 100644 --- a/overlay/Frameworks/res/values/config.xml +++ b/overlay/Frameworks/res/values/config.xml @@ -6,6 +6,9 @@ 0 + + org.lineageos.sensor.udfps +