From 02b93d0d5c8e03aa8b415f672ed600aafeafc5ef Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Wed, 29 Jan 2020 22:45:42 +0800 Subject: sdm660-common: lights: red -> white Change-Id: I097c542f95434d85b8c041b156dfd81952c64164 --- light/Light.cpp | 2 +- ...oid.hardware.light@2.0-service.xiaomi_sdm660.rc | 28 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'light') diff --git a/light/Light.cpp b/light/Light.cpp index 35ddfd1..e6d9349 100644 --- a/light/Light.cpp +++ b/light/Light.cpp @@ -31,7 +31,7 @@ namespace implementation { #define LEDS "/sys/class/leds/" #define LCD_LED LEDS "lcd-backlight/" #define BRIGHTNESS "brightness" -#define WHITE LEDS "red/" +#define WHITE LEDS "white/" #define BLINK "blink" #define DUTY_PCTS "duty_pcts" #define PAUSE_HI "pause_hi" 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 2d2f47c..7dac2e6 100644 --- a/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc +++ b/light/android.hardware.light@2.0-service.xiaomi_sdm660.rc @@ -1,20 +1,20 @@ on boot # Notification LED - chown system system /sys/class/leds/red/blink - chown system system /sys/class/leds/red/brightness - chown system system /sys/class/leds/red/duty_pcts - chown system system /sys/class/leds/red/pause_hi - chown system system /sys/class/leds/red/pause_lo - chown system system /sys/class/leds/red/ramp_step_ms - chown system system /sys/class/leds/red/start_idx + 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/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/red/blink - chmod 660 /sys/class/leds/red/brightness - chmod 660 /sys/class/leds/red/duty_pcts - chmod 660 /sys/class/leds/red/pause_hi - chmod 660 /sys/class/leds/red/pause_lo - chmod 660 /sys/class/leds/red/ramp_step_ms - chmod 660 /sys/class/leds/red/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 service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.xiaomi_sdm660 class hal -- cgit v1.2.3