From 264c3a5ca8c1422b2297f6ead0f79cc192e16c4e Mon Sep 17 00:00:00 2001 From: Arian Date: Sun, 14 Feb 2021 13:30:20 +0100 Subject: [PATCH] Revert "davinci: rootdir: Drop led permissions from ueventd" This reverts commit 688407d50e47091553eaab2f361cb57258b6ac9c. Change-Id: I30ee38523f5ab05e8ca6101522062fdd99e91280 --- ...ndroid.hardware.light@2.0-service.xiaomi_sm6150.rc | 4 ---- rootdir/etc/ueventd.rc | 11 +++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) 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