android_device_oneplus_dre/lights/android.hardware.light@2.0-service.oneplus_sdm845.rc
Luca Stefani 9f04a3ff7f sdm845-common: lights: Update service entry for P
Change-Id: I3f557e1c2fc774e11326e0dc769fc7d25852d819
2018-10-14 14:26:52 +02:00

15 lines
604 B
Text

on boot
chown system system /sys/class/leds/red/start_idx
chown system system /sys/class/leds/green/start_idx
chown system system /sys/class/leds/blue/start_idx
chown system system /sys/class/leds/red/lut_flags
chown system system /sys/class/leds/green/lut_flags
chown system system /sys/class/leds/blue/lut_flags
service vendor.light-hal-2-0 /system/bin/hw/android.hardware.light@2.0-service.oneplus_sdm845
interface android.hardware.light@2.0::ILight default
class hal
user system
group system
# shutting off lights while powering-off
shutdown critical