From fcc5980599c7ca3c999c90d6d62f7fae7cc112ee Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Mon, 5 Apr 2021 16:04:08 +0800 Subject: sdm660-common: chown light nodes earlier The hal class is essentially triggered from the boot class, so it's possible that the HAL starts before the permissions are set, and manual intervention was added to deal with the issue. However, we can simply move chown to an earlier stage to avoid playing with the workflow. Change-Id: I189b247576151f76efaf26b2d266564dc7768fba --- light/android.hardware.light@2.0-service.xiaomi_sdm660.rc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'light/android.hardware.light@2.0-service.xiaomi_sdm660.rc') diff --git a/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc b/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc index 5e5ddd1..3dd3990 100644 --- a/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc +++ b/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc @@ -1,4 +1,4 @@ -on boot +on early-boot # Notification LED chown system system /sys/class/leds/white/blink chown system system /sys/class/leds/white/brightness @@ -15,12 +15,9 @@ on boot chown system system /sys/class/leds/lcd-backlight/max_brightness - start vendor.light-hal-2-0 - service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.xiaomi_sdm660 interface android.hardware.light@2.0::ILight default class hal user system group system shutdown critical - disabled -- cgit v1.2.3