From 688407d50e47091553eaab2f361cb57258b6ac9c Mon Sep 17 00:00:00 2001 From: Arian Date: Mon, 31 Aug 2020 18:50:43 +0200 Subject: [PATCH] davinci: rootdir: Drop led permissions from ueventd * Set the permissions we need from lights HAL Change-Id: I93bc6cc0aab1d55f32b53a01df662fe5327c0199 --- light/android.hardware.light@2.0-service.davinci.rc | 4 ++++ rootdir/etc/ueventd.rc | 11 ----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/light/android.hardware.light@2.0-service.davinci.rc b/light/android.hardware.light@2.0-service.davinci.rc index c550d82..3a4f0bc 100644 --- a/light/android.hardware.light@2.0-service.davinci.rc +++ b/light/android.hardware.light@2.0-service.davinci.rc @@ -3,11 +3,15 @@ on boot chown system system /sys/class/backlight/panel0-backlight/max_brightness chown system system /sys/class/leds/green/brightness chown system system /sys/class/leds/green/breath + chown system system /sys/class/leds/blue/brightness + chown system system /sys/class/leds/blue/breath chmod 0644 /sys/class/backlight/panel0-backlight/brightness chmod 0644 /sys/class/backlight/panel0-backlight/max_brightness chmod 0644 /sys/class/leds/green/brightness chmod 0644 /sys/class/leds/green/breath + chmod 0644 /sys/class/leds/blue/brightness + chmod 0644 /sys/class/leds/blue/breath service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.davinci interface android.hardware.light@2.0::ILight default diff --git a/rootdir/etc/ueventd.rc b/rootdir/etc/ueventd.rc index d10d89a..c4f789a 100644 --- a/rootdir/etc/ueventd.rc +++ b/rootdir/etc/ueventd.rc @@ -118,17 +118,6 @@ 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