From 00540766d68cbddb0640e1c192ecf9887ce62c71 Mon Sep 17 00:00:00 2001 From: kamikaonashi Date: Sat, 15 Jun 2024 20:04:08 +0200 Subject: [PATCH] stone: rootdir: give permissions to adjust vibration Signed-off-by: Arijit78 --- rootdir/etc/init.qcom.rc | 4 ++++ rootdir/etc/init.target.rc | 4 ++++ 2 files changed, 8 insertions(+) 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