mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-02-01 06:05:20 +00:00
Since composer HAL is now able to handle display brightness, this can be removed from the lights HAL. Change-Id: Ic10cead638382d448a94205bcec3543177d387f6
19 lines
668 B
Plaintext
19 lines
668 B
Plaintext
on boot
|
|
chown system system /sys/class/leds/left/brightness
|
|
chown system system /sys/class/leds/left/breath
|
|
chown system system /sys/class/leds/right/brightness
|
|
chown system system /sys/class/leds/right/breath
|
|
|
|
chmod 0644 /sys/class/leds/left/brightness
|
|
chmod 0644 /sys/class/leds/left/breath
|
|
chmod 0644 /sys/class/leds/right/brightness
|
|
chmod 0644 /sys/class/leds/right/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
|