2023-01-22 21:41:19 -05:00
|
|
|
service vendor.light /vendor/bin/hw/android.hardware.lights-service.xpeng
|
2021-04-15 18:41:08 -04:00
|
|
|
class hal
|
|
|
|
user system
|
|
|
|
group system
|
|
|
|
shutdown critical
|
|
|
|
|
|
|
|
on boot
|
|
|
|
# Change ownership and permission for leds backlight
|
2022-02-15 10:43:11 -05:00
|
|
|
chown system system /sys/class/leds/charging/breath
|
|
|
|
chmod 0664 /sys/class/leds/charging/breath
|
2021-04-15 18:41:08 -04:00
|
|
|
chown system system /sys/class/leds/charging/brightness
|
|
|
|
chmod 0664 /sys/class/leds/charging/brightness
|
|
|
|
chown system system /sys/class/leds/charging/delay_off
|
2022-02-15 10:43:11 -05:00
|
|
|
chmod 0664 /sys/class/leds/charging/delay_off
|
2021-04-15 18:41:08 -04:00
|
|
|
chown system system /sys/class/leds/charging/delay_on
|
2022-02-15 10:43:11 -05:00
|
|
|
chmod 0664 /sys/class/leds/charging/delay_on
|
|
|
|
|
|
|
|
# change permission of red leds
|
|
|
|
chown system system /sys/class/leds/red/brightness
|
|
|
|
chmod 0664 /sys/class/leds/red/brightness
|