mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 13:35:09 +00:00
rosemary: init: Fix backlight on charger
Change-Id: I10115623f79dcf9ebe6904c9f736885eab0b3233
This commit is contained in:
committed by
Matsvei Niaverau
parent
9708fd333b
commit
0750d98980
@@ -110,6 +110,10 @@ on charger
|
|||||||
chmod 0664 /sys/class/power_supply/usb/pd_authentication
|
chmod 0664 /sys/class/power_supply/usb/pd_authentication
|
||||||
chmod 0664 /sys/class/power_supply/bms/authentic
|
chmod 0664 /sys/class/power_supply/bms/authentic
|
||||||
|
|
||||||
|
# Turn backlight on and switch to backlight trigger
|
||||||
|
write /sys/class/leds/lcd-backlight/brightness "1000"
|
||||||
|
write /sys/class/leds/lcd-backlight/trigger "backlight"
|
||||||
|
|
||||||
# Stop bootprof
|
# Stop bootprof
|
||||||
write /proc/bootprof "0"
|
write /proc/bootprof "0"
|
||||||
|
|
||||||
|
|||||||
2
sepolicy/vendor/vendor_init.te
vendored
2
sepolicy/vendor/vendor_init.te
vendored
@@ -7,3 +7,5 @@ allow vendor_init vendor_fingerprint_data_file:dir { rw_dir_perms relabelto seta
|
|||||||
allow vendor_init nfc_data_vendor_file:dir { r_dir_perms create_dir_perms };
|
allow vendor_init nfc_data_vendor_file:dir { r_dir_perms create_dir_perms };
|
||||||
|
|
||||||
allow vendor_init proc_sched_stune:file w_file_perms;
|
allow vendor_init proc_sched_stune:file w_file_perms;
|
||||||
|
|
||||||
|
rw_dir_file(vendor_init, sysfs_leds)
|
||||||
|
|||||||
Reference in New Issue
Block a user