platform_device_motorola_sm.../lights/android.hardware.lights.bengal.rc
Wolfram Liebchen 747fa28ad9
sm6225-common: Add notification light HAL
The otherwise unused charging-LED is used as notification light with
configurable pulse-widths.

Change-Id: Ic6c7cf993b8e83793b191d24cff65320c68d40d0
2023-11-11 16:28:23 +02:00

16 lines
646 B
Text

service vendor.light-default /vendor/bin/hw/android.hardware.lights-service.bengal
class hal
user system
group system
shutdown critical
on boot
# Change ownership and permission for charging led
chown system system /sys/class/leds/charging/breath
chown system system /sys/class/leds/charging/brightness
chown system system /sys/class/leds/charging/delay_off
chown system system /sys/class/leds/charging/delay_on
chmod 0640 /sys/class/leds/charging/breath
chmod 0640 /sys/class/leds/charging/brightness
chmod 0640 /sys/class/leds/charging/delay_off
chmod 0640 /sys/class/leds/charging/delay_on