688407d50e
* Set the permissions we need from lights HAL Change-Id: I93bc6cc0aab1d55f32b53a01df662fe5327c0199
23 lines
950 B
Plaintext
23 lines
950 B
Plaintext
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
|
|
|
|
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
|
|
|
|
service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.davinci
|
|
interface android.hardware.light@2.0::ILight default
|
|
class hal
|
|
user system
|
|
group system
|
|
# shutting off lights while powering-off
|
|
shutdown critical
|