vermeer: Commonized xiaomi.sensors.v2

Change-Id: I6d47307b52ebdc6270163a61db9a4bb7baed7818
Signed-off-by: lolipuru <banstellazz@gmail.com>
Signed-off-by: WenHao2130 <wenhao2130@outlook.com>
This commit is contained in:
WenHao2130
2025-11-28 18:00:07 +08:00
parent ebf827b5ec
commit 5f739934ac
6 changed files with 0 additions and 54 deletions

View File

@@ -18,10 +18,6 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio/mixer_paths_kalama_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/mixer_paths_kalama_mtp.xml \
$(LOCAL_PATH)/configs/audio/resourcemanager_kalama_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/resourcemanager_kalama_mtp.xml
# Init
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init/init.vermeer.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.vermeer.rc \
# IFAAService
PRODUCT_PACKAGES += \
IFAAService
@@ -39,13 +35,6 @@ PRODUCT_PACKAGES += \
WifiResVermeerPOCO \
WifiResVermeerRedmi
# Sensors
PRODUCT_PACKAGES += \
sensors.xiaomi.v2
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/hals.conf:$(TARGET_COPY_OUT_ODM)/etc/sensors/hals.conf
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)

View File

@@ -1 +0,0 @@
sensors.xiaomi.v2.so

View File

@@ -1,20 +0,0 @@
on boot
chown system system /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
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
on property:ro.vendor.sensors.xiaomi.single_tap=true
write /sys/class/touch/touch_dev/gesture_single_tap_enabled 1
on property:ro.vendor.sensors.xiaomi.double_tap=true
write /sys/class/touch/touch_dev/gesture_double_tap_enabled 1
on property:ro.vendor.sensors.xiaomi.udfps=true
write /sys/class/touch/touch_dev/fod_longpress_gesture_enabled 1

View File

@@ -495,15 +495,6 @@
-->
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
<!-- 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>
<!-- 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>
<!-- Whether to enable fp unlock when screen turns off on udfps devices -->
<bool name="config_screen_off_udfps_enabled">true</bool>

View File

@@ -1,10 +1,5 @@
# Fingerprint
persist.vendor.fingerprint.sensor_location=720|2882|124
# Sensors
ro.vendor.sensors.xiaomi.double_tap=true
ro.vendor.sensors.xiaomi.single_tap=true
ro.vendor.sensors.xiaomi.udfps=true
# System properties
ro.product.property_source_order=odm,vendor,product,system_ext,system

View File

@@ -1,8 +0,0 @@
# Sensors
genfscon sysfs /devices/virtual/touch/touch_dev/fod_finger_state 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/fod_press_status 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