From 008708a8270a8ba2c1bdb368303698da0c8204f0 Mon Sep 17 00:00:00 2001 From: Vaibhav Devmurari Date: Wed, 11 Jan 2023 10:58:16 +0000 Subject: [PATCH 1/2] Allow access to all brightness and multi_intensity nodes in sysfs Depending on how the device is connected, sysfs path to leds can have different directory path, to allow backlight controls, we will provide access to all 'brightness' and 'multi_intensity' nodes under sysfs directory of USB devices for whitechapel_pro. Test: manual Bug: 245506418 Change-Id: I9ca43f1b6d7950c56d08e300b6ac97320982e979 --- conf/ueventd.gs201.rc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/ueventd.gs201.rc b/conf/ueventd.gs201.rc index 3df2b6e8..03996b36 100644 --- a/conf/ueventd.gs201.rc +++ b/conf/ueventd.gs201.rc @@ -225,7 +225,7 @@ /sys/bus/iio/devices/iio:device* enabled_rails 0660 system system # sysfs LED nodes for external USB devices -/sys/devices/platform/11210000.usb/11210000.dwc3/xhci-hcd-exynos.5.auto/usb2/2-1/*/*/leds/* brightness 0664 system system -/sys/devices/platform/11210000.usb/11210000.dwc3/xhci-hcd-exynos.5.auto/usb2/2-1/*/*/leds/* multi_intensity 0664 system system -/sys/devices/platform/11210000.usb/11210000.dwc3/xhci-hcd-exynos.4.auto/usb2/2-1/*/*/leds/* brightness 0664 system system -/sys/devices/platform/11210000.usb/11210000.dwc3/xhci-hcd-exynos.4.auto/usb2/2-1/*/*/leds/* multi_intensity 0664 system system +/sys/devices/platform/11210000.usb/11210000.dwc3/xhci-hcd-exynos.5.auto/usb2/2-1* brightness 0664 system system +/sys/devices/platform/11210000.usb/11210000.dwc3/xhci-hcd-exynos.5.auto/usb2/2-1* multi_intensity 0664 system system +/sys/devices/platform/11210000.usb/11210000.dwc3/xhci-hcd-exynos.4.auto/usb2/2-1* brightness 0664 system system +/sys/devices/platform/11210000.usb/11210000.dwc3/xhci-hcd-exynos.4.auto/usb2/2-1* multi_intensity 0664 system system From 48e4f36abc0ce6fd88b0d10d278e7ff74e82f82f Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Wed, 11 Jan 2023 19:25:33 -0800 Subject: [PATCH 2/2] Remove wait_for_keymaster Bug: 186580823 Change-Id: I1e0e0fd4135385ec590ba2e4d4406648853c2700 Signed-off-by: Jaegeuk Kim --- conf/init.gs201.rc | 3 --- 1 file changed, 3 deletions(-) diff --git a/conf/init.gs201.rc b/conf/init.gs201.rc index 861e8641..7fc86b48 100644 --- a/conf/init.gs201.rc +++ b/conf/init.gs201.rc @@ -330,9 +330,6 @@ on init setprop vendor.device.modules.ready 1 on late-fs - # Wait for keymaster HALs - exec_start wait_for_keymaster - # Start bootanimation class before mount start bootanim class_start animation