diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 7ba089d..94f712b 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -71,6 +71,10 @@ on post-fs copy /vendor/dsp/cdsp/fastrpc_shell_3 /mnt/vendor/dsp/fastrpc_shell_3 chmod 0644 /mnt/vendor/dsp/fastrpc_shell_3 mount none /mnt/vendor/dsp/fastrpc_shell_3 /vendor/dsp/cdsp/fastrpc_shell_3 bind + + # Allow system to adjust haptic level directly + chown system system /sys/class/leds/vibrator/brightness + chmod 0664 /sys/class/leds/vibrator/brightness on early-boot # set RLIMIT_MEMLOCK to 64MB diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index cacf402..23372b3 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -63,6 +63,10 @@ on init chown system system /sys/class/drm/card0/card0-DSI-1/hbm chmod 0664 /sys/class/drm/card0/card0-DSI-1/hbm + + # Allow system to adjust haptic level directly + chown system system /sys/class/leds/vibrator/brightness + chmod 0664 /sys/class/leds/vibrator/brightness on early-fs start vold