device_xiaomi_sm6150-common/light/android.hardware.light@2.0-service.davinci.rc
Demon000 3e94ffe9a3
davinci: light: Import HAL from Xiaomi msm8998-common
Change-Id: Ieee4277f15927b4522deaec9a709809cf6db6fea
2020-08-05 14:03:32 +02:00

19 lines
752 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/white/brightness
chown system system /sys/class/leds/white/breath
chmod 0644 /sys/class/backlight/panel0-backlight/brightness
chmod 0644 /sys/class/backlight/panel0-backlight/max_brightness
chmod 0644 /sys/class/leds/white/brightness
chmod 0644 /sys/class/leds/white/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