summaryrefslogtreecommitdiff
path: root/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
diff options
context:
space:
mode:
Diffstat (limited to 'light/android.hardware.light@2.0-service.xiaomi_sdm660.rc')
-rw-r--r--light/android.hardware.light@2.0-service.xiaomi_sdm660.rc12
1 files changed, 5 insertions, 7 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 7dac2e6..969bdac 100644
--- a/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
+++ b/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc
@@ -3,21 +3,19 @@ on boot
chown system system /sys/class/leds/white/blink
chown system system /sys/class/leds/white/brightness
chown system system /sys/class/leds/white/duty_pcts
+ chown system system /sys/class/leds/white/max_brightness
chown system system /sys/class/leds/white/pause_hi
chown system system /sys/class/leds/white/pause_lo
chown system system /sys/class/leds/white/ramp_step_ms
chown system system /sys/class/leds/white/start_idx
- chmod 660 /sys/class/leds/white/blink
- chmod 660 /sys/class/leds/white/brightness
- chmod 660 /sys/class/leds/white/duty_pcts
- chmod 660 /sys/class/leds/white/pause_hi
- chmod 660 /sys/class/leds/white/pause_lo
- chmod 660 /sys/class/leds/white/ramp_step_ms
- chmod 660 /sys/class/leds/white/start_idx
+ 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
class hal
user system
group system
shutdown critical
+ disabled