Files
device_xiaomi_sm6150-common/light/android.hardware.light@2.0-service.xiaomi_sm6150.rc
Arian 4d4f9e343b sm6150-common: lights: Dynamically pick the left or white LED path
Change-Id: I1bc0514c29f9d63554240e1fb95e9aa9625bda6d
2021-04-25 15:23:51 +02:00

23 lines
876 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
chown system system /sys/class/leds/white/brightness
chown system system /sys/class/leds/white/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
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.xiaomi_sm6150
interface android.hardware.light@2.0::ILight default
class hal
user system
group system
# shutting off lights while powering-off
shutdown critical