temp hax: move light init to init.qcom.rc
This commit is contained in:
parent
9b215d2e09
commit
b6b7486d55
1 changed files with 40 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue