sm8450-common: Build and configure xiaomi touch hal

Change-Id: I01cb169d6f9609985a9eb70ba86b1497bd58aac1
This commit is contained in:
Arian 2025-01-23 21:47:16 +01:00
parent a7baad7fb6
commit 0da0932ce6
6 changed files with 13 additions and 0 deletions

View File

@ -224,6 +224,9 @@ BOARD_VENDOR_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor
TARGET_SENSOR_NOTIFIER_EXT ?= libsensor-notifier-ext
$(call soong_config_set, xiaomiSm8450SensorVars, extensionLibs, $(TARGET_SENSOR_NOTIFIER_EXT))
# Touchscreen
$(call soong_config_set, XIAOMI_TOUCH, HIGH_TOUCH_POLLING_PATH, /sys/devices/virtual/touch/touch_dev/bump_sample_rate)
# VINTF
DEVICE_MATRIX_FILE := hardware/qcom-caf/common/compatibility_matrix.xml

View File

@ -372,6 +372,9 @@ PRODUCT_PACKAGES += \
android.hardware.thermal-service.qti
# Touchscreen
PRODUCT_PACKAGES += \
vendor.lineage.touch@1.0-service.xiaomi
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml

View File

@ -66,6 +66,10 @@ on boot
chmod 0660 /sys/class/touch/touch_dev/gesture_double_tap_enabled
chmod 0660 /sys/class/touch/touch_dev/gesture_double_tap_state
# High touch polling rate
chown system system /sys/devices/virtual/touch/touch_dev/bump_sample_rate
chmod 0660 /sys/devices/virtual/touch/touch_dev/bump_sample_rate
on post-fs-data
# Create folder of camera
mkdir /data/vendor/camera/offlinelog 0777 cameraserver audio

View File

@ -83,3 +83,4 @@
# Touchscreen
/dev/xiaomi-touch u:object_r:touchfeature_device:s0
/vendor/bin/hw/vendor\.lineage\.touch@1\.0-service\.xiaomi u:object_r:hal_lineage_touch_default_exec:s0

View File

@ -26,3 +26,4 @@ genfscon sysfs /devices/platform/soc/soc:fingerprint_fpc/wakeup/wakeup u:object_
# Touchscreen
genfscon sysfs /devices/platform/goodix_ts.0/wakeup u:object_r:sysfs_wakeup:s0
genfscon sysfs /devices/virtual/touch/touch_dev/bump_sample_rate u:object_r:vendor_sysfs_touch:s0

View File

@ -0,0 +1 @@
allow hal_lineage_touch_default vendor_sysfs_touch:file rw_file_perms;