mirror of
https://github.com/LineageOS/android_device_xiaomi_vermeer.git
synced 2026-06-20 18:19:35 +00:00
vermeer: Move to double tap sensor
Change-Id: Ib4803011fefad35c8b7a2d1e2b7d2744b32b13f4
This commit is contained in:
@@ -3,4 +3,9 @@ on boot
|
|||||||
chmod 0660 /sys/class/touch/touch_dev/fod_longpress_gesture_enabled
|
chmod 0660 /sys/class/touch/touch_dev/fod_longpress_gesture_enabled
|
||||||
|
|
||||||
chown system system /sys/class/touch/touch_dev/gesture_single_tap_enabled
|
chown system system /sys/class/touch/touch_dev/gesture_single_tap_enabled
|
||||||
chmod 0660 /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
|
||||||
|
|||||||
@@ -478,4 +478,7 @@
|
|||||||
|
|
||||||
<!-- Type of the tap sensor. Empty if tap is not supported. -->
|
<!-- Type of the tap sensor. Empty if tap is not supported. -->
|
||||||
<string name="config_dozeTapSensorType" translatable="false">org.lineageos.sensor.single_tap</string>
|
<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>
|
</resources>
|
||||||
|
|||||||
@@ -2,4 +2,5 @@
|
|||||||
persist.vendor.fingerprint.sensor_location=720|2882|124
|
persist.vendor.fingerprint.sensor_location=720|2882|124
|
||||||
|
|
||||||
# Sensors
|
# Sensors
|
||||||
|
ro.vendor.sensors.xiaomi.double_tap=true
|
||||||
ro.vendor.sensors.xiaomi.single_tap=true
|
ro.vendor.sensors.xiaomi.single_tap=true
|
||||||
|
|||||||
4
sepolicy/vendor/genfs_contexts
vendored
4
sepolicy/vendor/genfs_contexts
vendored
@@ -1,4 +1,6 @@
|
|||||||
# Sensors
|
# 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/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_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
|
genfscon sysfs /devices/virtual/touch/touch_dev/gesture_single_tap_state u:object_r:vendor_sysfs_sensors:s0
|
||||||
|
|||||||
Reference in New Issue
Block a user