2021-09-26 15:08:29 -04:00
|
|
|
on early-boot
|
2022-09-12 14:58:21 -04:00
|
|
|
# Notification LEDs
|
2021-09-26 15:08:29 -04:00
|
|
|
chown system system /sys/class/leds/red/blink
|
|
|
|
chown system system /sys/class/leds/red/breath
|
|
|
|
chown system system /sys/class/leds/red/brightness
|
|
|
|
chown system system /sys/class/leds/red/max_brightness
|
|
|
|
|
|
|
|
chown system system /sys/class/leds/green/blink
|
|
|
|
chown system system /sys/class/leds/green/breath
|
|
|
|
chown system system /sys/class/leds/green/brightness
|
|
|
|
chown system system /sys/class/leds/green/max_brightness
|
|
|
|
|
|
|
|
chown system system /sys/class/leds/blue/blink
|
|
|
|
chown system system /sys/class/leds/blue/breath
|
|
|
|
chown system system /sys/class/leds/blue/brightness
|
|
|
|
chown system system /sys/class/leds/blue/max_brightness
|
|
|
|
|
|
|
|
chown system system /sys/class/leds/white/blink
|
|
|
|
chown system system /sys/class/leds/white/breath
|
|
|
|
chown system system /sys/class/leds/white/brightness
|
|
|
|
chown system system /sys/class/leds/white/max_brightness
|
|
|
|
|
2022-09-12 14:58:21 -04:00
|
|
|
# Backlight
|
2022-09-12 15:04:23 -04:00
|
|
|
chown system system /sys/class/backlight/backlight/brightness
|
|
|
|
chown system system /sys/class/backlight/backlight/max_brightness
|
|
|
|
|
2021-09-26 15:08:29 -04:00
|
|
|
chown system system /sys/class/backlight/panel0-backlight/brightness
|
2022-09-12 14:58:21 -04:00
|
|
|
chown system system /sys/class/backlight/panel0-backlight/max_brightness
|
|
|
|
|
|
|
|
chown system system /sys/class/leds/lcd-backlight/brightness
|
|
|
|
chown system system /sys/class/leds/lcd-backlight/max_brightness
|
2021-09-26 15:08:29 -04:00
|
|
|
|
2022-09-12 14:58:21 -04:00
|
|
|
# Buttons
|
2021-09-26 15:08:29 -04:00
|
|
|
chown system system /sys/class/leds/button-backlight/brightness
|
|
|
|
chown system system /sys/class/leds/button-backlight1/brightness
|
|
|
|
|
2021-09-22 05:35:51 -04:00
|
|
|
service vendor.light-default /vendor/bin/hw/android.hardware.light-service.xiaomi
|
2021-09-22 05:29:46 -04:00
|
|
|
class hal
|
2021-09-26 15:08:29 -04:00
|
|
|
user system
|
|
|
|
group system
|
2021-09-22 05:29:46 -04:00
|
|
|
shutdown critical
|