platform_device_xiaomi_sm84.../rootdir/etc/init.touch_report.rc
Arian 973b08b277 sm8450-common: Add touch_report init script
Change-Id: I4db767086b34c46e64cb94a6e4dd20837672d31c
2024-03-19 22:58:04 +01:00

112 lines
5.9 KiB
Text

# Copyright (c) 2017-2022 Xiaomi, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Xiaomi, Inc.
#
on post-fs-data
mkdir /data/vendor/mqsas_common 0771 system system
mkdir /data/vendor/touch 0771 system system
on boot
chown system system /dev/xiaomi-touch
chmod 0664 /dev/xiaomi-touch
chown system system /dev/xiaomi-touch-knock
chmod 0664 /dev/xiaomi-touch-knock
chown system system /dev/xiaomi-thp
chmod 0664 /dev/xiaomi-thp
chown system system /sys/class/touch/tp_dev/fod_status
chmod 0664 /sys/class/touch/tp_dev/fod_status
chown system system /sys/class/touch/touch_dev/gesture_single_tap_state
chmod 0664 /sys/class/touch/touch_dev/gesture_single_tap_state
chown system system /sys/class/touch/touch_dev/fod_press_status
chmod 0664 /sys/class/touch/touch_dev/fod_press_status
chown system system /proc/tp_selftest
chmod 0664 /proc/tp_selftest
chown system system /proc/tp_selftest_1
chmod 0664 /proc/tp_selftest_1
chown system system /sys/class/touch/touch_dev/clicktouch_raw
chmod 0664 /sys/class/touch/touch_dev/clicktouch_raw
chown system system /sys/class/touch/touch_dev/update_rawdata
chmod 0664 /sys/class/touch/touch_dev/update_rawdata
chown system system /sys/class/touch/touch_dev/enable_touch_raw
chmod 0664 /sys/class/touch/touch_dev/enable_touch_raw
chown system system /sys/class/touch/touch_dev/enable_touch_delta
chmod 0664 /sys/class/touch/touch_dev/enable_touch_delta
chown system system /sys/class/touch/touch_dev/touch_thp_dump
chmod 0664 /sys/class/touch/touch_dev/touch_thp_dump
chown system system /sys/class/touch/touch_dev/touch_thp_cmd
chmod 0664 /sys/class/touch/touch_dev/touch_thp_cmd
chown system system /sys/class/touch/touch_dev/suspend_state
chmod 0664 /sys/class/touch/touch_dev/suspend_state
chown system system /sys/class/touch/touch_dev/prox_sensor_data
chmod 0664 /sys/class/touch/touch_dev/prox_sensor_data
chown system system /sys/class/touch/touch_dev/prox_sensor
chmod 0664 /sys/class/touch/touch_dev/prox_sensor
chown system system /sys/class/touch/touch_dev/touch_thp_rx_num
chmod 0664 /sys/class/touch/touch_dev/touch_thp_rx_num
chown system system /sys/class/touch/touch_dev/touch_thp_tx_num
chmod 0664 /sys/class/touch/touch_dev/touch_thp_tx_num
chown system system /sys/class/touch/touch_dev/touch_thp_x_resolution
chmod 0664 /sys/class/touch/touch_dev/touch_thp_x_resolution
chown system system /sys/class/touch/touch_dev/touch_thp_y_resolution
chmod 0664 /sys/class/touch/touch_dev/touch_thp_y_resolution
chown system system /sys/class/touch/touch_dev/touch_thp_smooth
chmod 0664 /sys/class/touch/touch_dev/touch_thp_smooth
chown system system /sys/class/touch/touch_dev/touch_thp_noisefilter
chmod 0664 /sys/class/touch/touch_dev/touch_thp_noisefilter
chown system system /sys/class/touch/touch_dev/touch_thp_downthd
chmod 0664 /sys/class/touch/touch_dev/touch_thp_downthd
chown system system /sys/class/touch/touch_dev/touch_thp_upthd
chmod 0664 /sys/class/touch/touch_dev/touch_thp_upthd
chown system system /sys/class/touch/touch_dev/touch_thp_movethd
chmod 0664 /sys/class/touch/touch_dev/touch_thp_movethd
chown system system /sys/class/touch/touch_dev/touch_thp_islandthd
chmod 0664 /sys/class/touch/touch_dev/touch_thp_islandthd
chown system system /sys/class/touch/touch_dev/touch_thp_cmd_data
chmod 0664 /sys/class/touch/touch_dev/touch_thp_cmd_data
chown system system /sys/class/touch/touch_dev/palm_sensor_data
chmod 0664 /sys/class/touch/touch_dev/palm_sensor_data
chown system system /sys/class/touch/touch_dev/palm_sensor
chmod 0664 /sys/class/touch/touch_dev/palm_sensor
chown system system /sys/class/touch/touch_dev/hold_sensor
chmod 0664 /sys/class/touch/touch_dev/hold_sensor
chown system system /proc/tp_hal_version
chmod 0664 /proc/tp_hal_version
chown system system /proc/tp_lockdown_info
chmod 0664 /proc/tp_lockdown_info
chmod 0664 /sys/class/touch/touch_dev/touch_active_status
chown system system /sys/class/touch/touch_dev/touch_active_status
chmod 0664 /sys/class/touch/touch_dev/touch_finger_status
chown system system /sys/class/touch/touch_dev/touch_finger_status
chmod 0664 /sys/class/touch/touch_dev/touch_irq_no
chown system system /sys/class/touch/touch_dev/touch_irq_no
chmod 0664 /sys/class/touch/touch_dev/touch_sensor
chown system system /sys/class/touch/touch_dev/touch_sensor
chmod 0664 /sys/class/touch/touch_dev/touch_sensor_ctrl
chown system system /sys/class/touch/touch_dev/touch_sensor_ctrl
chmod 0664 /sys/class/touch/touch_dev/touch_thp_film
chown system system /sys/class/touch/touch_dev/touch_thp_film
chmod 0664 /sys/class/touch/touch_dev/touch_thp_mem_notify
chown system system /sys/class/touch/touch_dev/touch_thp_mem_notify
chmod 0664 /sys/class/touch/touch_dev/touch_thp_testmode
chown system system /sys/class/touch/touch_dev/touch_thp_testmode
chmod 0664 /sys/class/touch/touch_dev/touch_thp_testresult
chown system system /sys/class/touch/touch_dev/touch_thp_testresult
chmod 0664 /sys/class/touch/touch_dev/touch_thp_preset_point
chown system system /sys/class/touch/touch_dev/touch_thp_preset_point
chmod 0664 /sys/class/touch/touch_dev/touch_doze_analysis
chown system system /sys/class/touch/touch_dev/touch_doze_analysis
chown system system /sys/class/touch/touch_dev/touch_thp_cmd_ready
chmod 0664 /sys/class/touch/touch_dev/touch_thp_cmd_ready
chmod 0664 /sys/class/touch/touch_dev/touch_ic_buffer
chown system system /sys/class/touch/touch_dev/touch_ic_buffer
chmod 0664 /sys/class/touch/touch_dev/abnormal_event
chown system system /sys/class/touch/touch_dev/abnormal_event
service touch_report /vendor/bin/touch_report
class hal
user system
group system uhid input
capabilities SYS_NICE
ioprio rt 4
seclabel u:r:touchreport:s0