* Changes authored by dianlujitao in commits 7174356 ("Improve lights HAL") and
f8e30fd ("Fix battery light not lit after notification light off") are
adapted as following:
Type(HIDL) -> id(AIDL) in functions and maps
Note: Keep backlight in the map as per b9e44e5007
, allowing SF to set backlight.
Co-authored-by: dianlujitao <dianlujitao@lineageos.org>
Change-Id: I8960a1fe0b44097e703f3f067d4e432a12d26fc3
Signed-off-by: pix106 <sbordenave@gmail.com>
12 lines
458 B
Text
12 lines
458 B
Text
on boot
|
|
# Backlight
|
|
chown system system /sys/class/backlight/panel0-backlight/brightness
|
|
chown system system /sys/class/backlight/panel0-backlight/max_brightness
|
|
chmod 0644 /sys/class/backlight/panel0-backlight/brightness
|
|
chmod 0644 /sys/class/backlight/panel0-backlight/max_brightness
|
|
|
|
service vendor.light /vendor/bin/hw/android.hardware.lights-service.xiaomi_sdm660
|
|
class hal
|
|
user system
|
|
group system
|
|
shutdown critical
|