From b6b7486d55bcc39ba1b7279dc166e1ba3f6bc164 Mon Sep 17 00:00:00 2001 From: GiaSen Date: Thu, 7 May 2020 10:13:57 +0200 Subject: [PATCH] temp hax: move light init to init.qcom.rc --- rootdir/etc/init.qcom.rc | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 3d7af1a..b1c3376 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -23,6 +23,46 @@ on boot chown system system /sys/class/touch/tp_dev/gesture_on chown 0660 /sys/class/touch/tp_dev/gesture_on + # Light HAL + chown system system /sys/class/leds/wled/brightness + chown system system /sys/class/leds/wled/max_brightness + chown system system /sys/class/leds/red/breath + chown system system /sys/class/leds/red/brightness + chown system system /sys/class/leds/red/delay_on + chown system system /sys/class/leds/red/delay_off + chown system system /sys/class/leds/green/breath + chown system system /sys/class/leds/green/brightness + chown system system /sys/class/leds/green/delay_on + chown system system /sys/class/leds/green/delay_off + chown system system /sys/class/leds/blue/breath + chown system system /sys/class/leds/blue/brightness + chown system system /sys/class/leds/blue/delay_on + chown system system /sys/class/leds/blue/delay_off + + chmod 0644 /sys/class/leds/wled/brightness + chmod 0644 /sys/class/leds/wled/max_brightness + chmod 0644 /sys/class/leds/red/breath + chmod 0644 /sys/class/leds/red/brightness + chmod 0644 /sys/class/leds/red/delay_on + chmod 0644 /sys/class/leds/red/delay_off + chmod 0644 /sys/class/leds/green/breath + chmod 0644 /sys/class/leds/green/brightness + chmod 0644 /sys/class/leds/green/delay_on + chmod 0644 /sys/class/leds/green/delay_off + chmod 0644 /sys/class/leds/blue/breath + chmod 0644 /sys/class/leds/blue/brightness + chmod 0644 /sys/class/leds/blue/delay_on + chmod 0644 /sys/class/leds/blue/delay_off + +service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service + interface android.hardware.light@2.0::ILight default + class hal + user system + group system + # shutting off lights while powering-off + shutdown critical + + service cvphalservice /system/bin/true disabled