2019-05-14 15:32:11 -04:00
|
|
|
on boot
|
2020-08-30 17:54:36 -04:00
|
|
|
chown system system /sys/class/leds/left/brightness
|
|
|
|
chown system system /sys/class/leds/left/breath
|
2021-01-23 13:14:48 -05:00
|
|
|
chown system system /sys/class/leds/white/brightness
|
|
|
|
chown system system /sys/class/leds/white/breath
|
2019-05-14 15:32:11 -04:00
|
|
|
|
2020-08-30 17:54:36 -04:00
|
|
|
chmod 0644 /sys/class/leds/left/brightness
|
|
|
|
chmod 0644 /sys/class/leds/left/breath
|
2021-01-23 13:14:48 -05:00
|
|
|
chmod 0644 /sys/class/leds/white/brightness
|
|
|
|
chmod 0644 /sys/class/leds/white/breath
|
2019-05-14 15:32:11 -04:00
|
|
|
|
2021-01-12 12:52:43 -05:00
|
|
|
service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.xiaomi_sm6150
|
2019-05-14 15:32:11 -04:00
|
|
|
interface android.hardware.light@2.0::ILight default
|
|
|
|
class hal
|
|
|
|
user system
|
|
|
|
group system
|
|
|
|
# shutting off lights while powering-off
|
|
|
|
shutdown critical
|