diff --git a/public/recovery.te b/public/recovery.te index 9bab7e2f7f4bf500aa33d83070a97345596c2f65..c607d034c237c6dc80f58b0d888156c370a17d0c 100644 --- a/public/recovery.te +++ b/public/recovery.te @@ -56,6 +56,12 @@ recovery_only(` allow recovery sysfs_batteryinfo:file r_file_perms; + # Read from /sys/class/leds/lcd-backlight/max_brightness and write to /s/c/l/l/brightness to + # control backlight brightness. + allow recovery sysfs_leds:dir r_dir_perms; + allow recovery sysfs_leds:file rw_file_perms; + allow recovery sysfs_leds:lnk_file read; + allow recovery kernel:system syslog_read; # Access /dev/usb-ffs/adb/ep0