zeus: 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 2105861097
commit 39e7544618
5 changed files with 16 additions and 0 deletions

View file

@ -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

View file

@ -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)

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}.

2
properties/vendor.prop Normal file
View file

@ -0,0 +1,2 @@
# Sensors
ro.vendor.sensors.xiaomi.udfps=true

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