stone: rootdir: give permissions to adjust vibration

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
This commit is contained in:
kamikaonashi
2024-06-15 20:04:08 +02:00
committed by Arijit78
parent e97bc751bf
commit 00540766d6
2 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -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