summaryrefslogtreecommitdiff
path: root/light
diff options
context:
space:
mode:
Diffstat (limited to 'light')
-rw-r--r--light/Light.cpp2
-rw-r--r--light/android.hardware.light@2.0-service.xiaomi_sdm660.rc28
2 files changed, 15 insertions, 15 deletions
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