Merge "Allow recovery to read thermal info" am: 462cf398a0

am: 8ee641877c

Change-Id: I6c035c3e696531297ff8a3c09045acf6d2c98cd0
This commit is contained in:
Tianjie Xu 2017-04-07 18:27:57 +00:00 committed by android-build-merger
commit 82696dd19b

View File

@ -90,6 +90,10 @@ recovery_only(`
allow recovery { cache_file cache_recovery_file }:dir create_dir_perms;
allow recovery { cache_file cache_recovery_file }:file create_file_perms;
# Read /sys/class/thermal/*/temp for thermal info.
allow recovery sysfs_thermal:dir search;
allow recovery sysfs_thermal:file r_file_perms;
# Read files on /oem.
r_dir_file(recovery, oemfs);