mirror of
https://github.com/LineageOS/android_device_xiaomi_vermeer.git
synced 2026-06-20 18:19:35 +00:00
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:
11
device.mk
11
device.mk
@@ -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)
|
||||
|
||||
@@ -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
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
8
sepolicy/vendor/genfs_contexts
vendored
8
sepolicy/vendor/genfs_contexts
vendored
@@ -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
|
||||
Reference in New Issue
Block a user