vermeer: Move to double tap sensor

Change-Id: Ib4803011fefad35c8b7a2d1e2b7d2744b32b13f4
This commit is contained in:
Arian
2024-06-01 19:13:29 +02:00
committed by Lunark :3
parent f2ab17bc80
commit 2d992e1f82
4 changed files with 13 additions and 2 deletions

View File

@@ -4,3 +4,8 @@ on boot
chown system system /sys/class/touch/touch_dev/gesture_single_tap_enabled
chmod 0660 /sys/class/touch/touch_dev/gesture_single_tap_enabled
chown system system /sys/class/touch/touch_dev/gesture_double_tap_enabled
chmod 0660 /sys/class/touch/touch_dev/gesture_double_tap_enabled
chown system system /sys/class/touch/touch_dev/gesture_double_tap_state
chmod 0664 /sys/class/touch/touch_dev/gesture_double_tap_state

View File

@@ -478,4 +478,7 @@
<!-- Type of the tap sensor. Empty if tap is not supported. -->
<string name="config_dozeTapSensorType" translatable="false">org.lineageos.sensor.single_tap</string>
<!-- Type of the double tap sensor. Empty if double tap is not supported. -->
<string name="config_dozeDoubleTapSensorType" translatable="false">org.lineageos.sensor.double_tap</string>
</resources>

View File

@@ -2,4 +2,5 @@
persist.vendor.fingerprint.sensor_location=720|2882|124
# Sensors
ro.vendor.sensors.xiaomi.double_tap=true
ro.vendor.sensors.xiaomi.single_tap=true

View File

@@ -1,4 +1,6 @@
# Sensors
genfscon sysfs /devices/virtual/touch/touch_dev/fod_longpress_gesture_enabled u:object_r:vendor_sysfs_sensors:s0
genfscon sysfs /devices/virtual/touch/touch_dev/gesture_double_tap_enabled u:object_r:vendor_sysfs_sensors:s0
genfscon sysfs /devices/virtual/touch/touch_dev/gesture_double_tap_state u:object_r:vendor_sysfs_sensors:s0
genfscon sysfs /devices/virtual/touch/touch_dev/gesture_single_tap_enabled u:object_r:vendor_sysfs_sensors:s0
genfscon sysfs /devices/virtual/touch/touch_dev/gesture_single_tap_state u:object_r:vendor_sysfs_sensors:s0