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
jeangraff30 1220e128cd msm8953-common: Initial Common tree
* based on motorola sdm632-common

Co-authored-by: Jorg3Lucas <jorgelucas@pixelexperience.org>
2020-11-09 18:04:50 +01:00

43 lines
1.4 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 mot_tcmd /sys/devices/soc/soc:fpc_fpc1020/dev_enable
chown system mot_tcmd /sys/devices/soc/soc:fpc_fpc1020/irq
chown system mot_tcmd /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 mot_tcmd /sys/class/graphics/fb0/te_test
chown root mot_tcmd /sys/class/graphics/fb0/te_enable
chown root mot_tcmd /sys/class/graphics/fb0/frame_counter
service mmi-laser-sh /vendor/bin/init.mmi.laser.sh
class core
user root
oneshot