Skip to content
Snippets Groups Projects
Commit f0f4db9f authored by Tao Bao's avatar Tao Bao
Browse files

recovery: Allow accessing sysfs_leds.

Bug: 34077703
Test: recovery image can set the backlight brightness.
Change-Id: I34d72e1a0e959c2d9f48b3b9c55c4eb2d1cc41bf
parent a86316e8
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment