pixel_stats: add access to PSI information
Add access to PSI information, i.e. /proc/pressure/xyz,
where xyz=cpu, io, or memory.
Test: local test
Bug: 233841658
Signed-off-by: Robin Hsu <robinhsu@google.com>
Change-Id: Ic433cd2ebfdd24694ed63bee118e30e286c11b41
diff --git a/pixelstats/pixelstats_vendor.te b/pixelstats/pixelstats_vendor.te
index 4b43168..c3d3377 100644
--- a/pixelstats/pixelstats_vendor.te
+++ b/pixelstats/pixelstats_vendor.te
@@ -18,6 +18,7 @@
allow pixelstats_vendor sysfs_pixel_stat:file r_file_perms;
userdebug_or_eng(`
+ allow pixelstats_vendor { proc_pressure_cpu proc_pressure_io proc_pressure_mem }:file r_file_perms;
allow pixelstats_vendor proc_vmstat:file r_file_perms;
allow pixelstats_vendor sysfs_ion:dir search;
allow pixelstats_vendor sysfs_ion:file r_file_perms;