diff options
author | dianlujitao <dianlujitao@lineageos.org> | 2021-04-05 16:04:08 +0800 |
---|---|---|
committer | dianlujitao <dianlujitao@lineageos.org> | 2021-04-25 03:57:34 +0200 |
commit | fcc5980599c7ca3c999c90d6d62f7fae7cc112ee (patch) | |
tree | 93778672254ac495ab6d988aeb0ba5a548af05c0 | |
parent | e955593eabb5ea03236800f8ad2c549863e747ca (diff) |
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
-rw-r--r-- | light/android.hardware.light@2.0-service.xiaomi_sdm660.rc | 5 |
1 files changed, 1 insertions, 4 deletions
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 |