This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
device_motorola_msm8953-common/rootdir/etc/init.mmi.overlay.rc
2021-03-05 15:28:17 +00:00

39 lines
1.3 KiB
Plaintext

import init.hidl.sensor.rc
service capsense_set_threshold /system/vendor/bin/capsense_set_threshold
class core
user system
group system
disabled
oneshot
on init
# Change ownership for for HBM feature
chown system system /sys/class/graphics/fb0/hbm
# Change ownership for for cabc feature
chown system system /sys/class/graphics/fb0/cabc
on boot
# capsensor fw path
chown system system /sys/class/capsense/set_threshold
# Change permission for fingerprint sensor
chown system oem_5004 /sys/devices/soc/soc:fpc_fpc1020/dev_enable
chown system oem_5004 /sys/devices/soc/soc:fpc_fpc1020/irq
chown system oem_5004 /sys/devices/soc/soc:fpc_fpc1020/irq_cnt
chmod 0440 /sys/devices/soc/soc:fpc_fpc1020/irq_cnt
# Change ownership and permission for laser_sensor
chown system system /sys/kernel/range/enable_sar
chmod 0660 /sys/kernel/range/enable_sar
chown system system /sys/kernel/range/set_delay_ms
chmod 0660 /sys/kernel/range/set_delay_ms
chown system system /sys/kernel/range/near
chmod 0660 /sys/kernel/range/near
# Change the ownership of display TE files for tcmds
chown root oem_5004 /sys/class/graphics/fb0/te_test
chown root oem_5004 /sys/class/graphics/fb0/te_enable
chown root oem_5004 /sys/class/graphics/fb0/frame_counter