From f41e3349224380b4ee3715b0a7fdacc750f48956 Mon Sep 17 00:00:00 2001 From: Chris Ye Date: Sun, 10 Jan 2021 09:37:59 -0800 Subject: [PATCH] Allow system server to access sysfs node of led lights. To support input device lights manager feature in frameworks, provide sysfs node access to system server process. Bug: 161633625 Test: atest LightsManagerTest, atest InputDeviceLightsManagerTest Change-Id: Ic823539e9dd616b6ca4ae803756746e0f5349ec1 --- rootdir/ueventd.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootdir/ueventd.rc b/rootdir/ueventd.rc index a1e9b12ff..3eeda2058 100644 --- a/rootdir/ueventd.rc +++ b/rootdir/ueventd.rc @@ -76,3 +76,5 @@ subsystem dma_heap /sys/devices/virtual/usb_composite/* enable 0664 root system /sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system /sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system +/sys/devices/virtual/misc/uhid/*/leds/* brightness 0664 system system +/sys/devices/virtual/misc/uhid/*/leds/* multi_intensity 0664 system system