sdm660-common: lights: red -> white
Change-Id: I097c542f95434d85b8c041b156dfd81952c64164
This commit is contained in:
parent
08f10b8e4d
commit
35ff9a708f
2 changed files with 15 additions and 13 deletions
|
@ -25,7 +25,7 @@
|
||||||
#define LEDS "/sys/class/leds/"
|
#define LEDS "/sys/class/leds/"
|
||||||
|
|
||||||
#define LCD_LED LEDS "lcd-backlight/"
|
#define LCD_LED LEDS "lcd-backlight/"
|
||||||
#define WHITE_LED LEDS "red/"
|
#define WHITE_LED LEDS "white/"
|
||||||
|
|
||||||
#define BLINK "blink"
|
#define BLINK "blink"
|
||||||
#define BRIGHTNESS "brightness"
|
#define BRIGHTNESS "brightness"
|
||||||
|
|
|
@ -1,18 +1,20 @@
|
||||||
on boot
|
on boot
|
||||||
# Notification LED
|
# Notification LED
|
||||||
chown system system /sys/class/leds/red/blink
|
chown system system /sys/class/leds/white/blink
|
||||||
chown system system /sys/class/leds/red/brightness
|
chown system system /sys/class/leds/white/brightness
|
||||||
chown system system /sys/class/leds/red/duty_pcts
|
chown system system /sys/class/leds/white/duty_pcts
|
||||||
chown system system /sys/class/leds/red/pause_hi
|
chown system system /sys/class/leds/white/pause_hi
|
||||||
chown system system /sys/class/leds/red/pause_lo
|
chown system system /sys/class/leds/white/pause_lo
|
||||||
chown system system /sys/class/leds/red/ramp_step_ms
|
chown system system /sys/class/leds/white/ramp_step_ms
|
||||||
chown system system /sys/class/leds/red/start_idx
|
chown system system /sys/class/leds/white/start_idx
|
||||||
|
|
||||||
chmod 660 /sys/class/leds/red/duty_pcts
|
chmod 660 /sys/class/leds/white/blink
|
||||||
chmod 660 /sys/class/leds/red/pause_hi
|
chmod 660 /sys/class/leds/white/brightness
|
||||||
chmod 660 /sys/class/leds/red/pause_lo
|
chmod 660 /sys/class/leds/white/duty_pcts
|
||||||
chmod 660 /sys/class/leds/red/ramp_step_ms
|
chmod 660 /sys/class/leds/white/pause_hi
|
||||||
chmod 660 /sys/class/leds/red/start_idx
|
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
|
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
|
interface android.hardware.light@2.0::ILight default
|
||||||
|
|
Loading…
Reference in a new issue