unicorn: Add support for udfps long press sensor

Change-Id: I7196dce967c9adbc62bb5156ade749c92c7780a1
This commit is contained in:
Cosmin Tanislav
2022-02-20 19:21:09 +02:00
committed by Arian
parent b5faf6f0f8
commit 7fc4de1bb2
3 changed files with 14 additions and 0 deletions

View File

@@ -18,6 +18,13 @@ PRODUCT_PACKAGES += \
SystemUIResUnicorn \
WifiResUnicorn
# Sensors
PRODUCT_PACKAGES += \
sensors.xiaomi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)

View File

@@ -6,6 +6,9 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<integer name="config_udfps_illumination_transition_ms">0</integer>
<!-- Type of the udfps long press sensor. Empty if long press is not supported. -->
<string name="config_dozeUdfpsLongPressSensorType" translatable="false">org.lineageos.sensor.udfps</string>
<!-- The bounding path of the cutout region of the main built-in display.
Must either be empty if there is no cutout region, or a string that is parsable by
{@link android.util.PathParser}.

4
sensors/hals.conf Normal file
View File

@@ -0,0 +1,4 @@
sensors.ultrasoundproximity.so
sensors.ssc.so
sensors.touch.detect.so
sensors.xiaomi.so