diff --git a/light/android.hardware.light@2.0-service.xiaomi_sm6150.rc b/light/android.hardware.light@2.0-service.xiaomi_sm6150.rc index 63477a8..e3c640f 100644 --- a/light/android.hardware.light@2.0-service.xiaomi_sm6150.rc +++ b/light/android.hardware.light@2.0-service.xiaomi_sm6150.rc @@ -1,15 +1,11 @@ on boot chown system system /sys/class/leds/left/brightness chown system system /sys/class/leds/left/breath - chown system system /sys/class/leds/right/brightness - chown system system /sys/class/leds/right/breath chown system system /sys/class/leds/white/brightness chown system system /sys/class/leds/white/breath chmod 0644 /sys/class/leds/left/brightness chmod 0644 /sys/class/leds/left/breath - chmod 0644 /sys/class/leds/right/brightness - chmod 0644 /sys/class/leds/right/breath chmod 0644 /sys/class/leds/white/brightness chmod 0644 /sys/class/leds/white/breath diff --git a/rootdir/etc/ueventd.rc b/rootdir/etc/ueventd.rc index 53f18df..06dc7eb 100644 --- a/rootdir/etc/ueventd.rc +++ b/rootdir/etc/ueventd.rc @@ -121,6 +121,17 @@ firmware_directories /vendor/firmware_mnt/image/ # Kmsg device /dev/kmsg 0620 root system +# LED class devices +/sys/class/leds/red delay_on 0640 system system +/sys/class/leds/red delay_off 0640 system system +/sys/class/leds/red breath 0640 system system +/sys/class/leds/green delay_on 0640 system system +/sys/class/leds/green delay_off 0640 system system +/sys/class/leds/green breath 0640 system system +/sys/class/leds/blue delay_on 0640 system system +/sys/class/leds/blue delay_off 0640 system system +/sys/class/leds/blue breath 0640 system system + # NPU device /dev/msm_npu 0644 system system