diff --git a/light/Light.cpp b/light/Light.cpp index 76d4258..7ce09e4 100644 --- a/light/Light.cpp +++ b/light/Light.cpp @@ -23,7 +23,7 @@ #include #define PANEL_LED "/sys/class/backlight/panel0-backlight/" -#define NOTIFICATION_LED "/sys/class/leds/green/" +#define NOTIFICATION_LED "/sys/class/leds/left/" #define BREATH "breath" #define BRIGHTNESS "brightness" diff --git a/light/android.hardware.light@2.0-service.davinci.rc b/light/android.hardware.light@2.0-service.davinci.rc index 3a4f0bc..7fd8d1c 100644 --- a/light/android.hardware.light@2.0-service.davinci.rc +++ b/light/android.hardware.light@2.0-service.davinci.rc @@ -1,17 +1,17 @@ on boot chown system system /sys/class/backlight/panel0-backlight/brightness chown system system /sys/class/backlight/panel0-backlight/max_brightness - chown system system /sys/class/leds/green/brightness - chown system system /sys/class/leds/green/breath - chown system system /sys/class/leds/blue/brightness - chown system system /sys/class/leds/blue/breath + chown system system /sys/class/leds/left/brightness + chown system system /sys/class/leds/left/breath + chown system system /sys/class/leds/right/brightness + chown system system /sys/class/leds/right/breath chmod 0644 /sys/class/backlight/panel0-backlight/brightness chmod 0644 /sys/class/backlight/panel0-backlight/max_brightness - chmod 0644 /sys/class/leds/green/brightness - chmod 0644 /sys/class/leds/green/breath - chmod 0644 /sys/class/leds/blue/brightness - chmod 0644 /sys/class/leds/blue/breath + chmod 0644 /sys/class/leds/left/brightness + chmod 0644 /sys/class/leds/left/breath + chmod 0644 /sys/class/leds/right/brightness + chmod 0644 /sys/class/leds/right/breath service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.davinci interface android.hardware.light@2.0::ILight default