From b17a5fc383a25e7ba3e4960c53aafb4a5ec3719a Mon Sep 17 00:00:00 2001 From: George Lee Date: Sun, 11 Dec 2022 21:00:36 -0800 Subject: [PATCH] Add BrownoutDetected Events - zuma sepolicy Brownout Detection is detected during the boot sequence. If the previous shutdown resulted in a reboot reason that has *ocp* or *uvlo* in it, the shutdown was due to brownout. Mitigation Logger should have logged the device state during the brownout. This event metric is to surface the logged data. Bug: 250009365 Test: Confirm triggering of events Ignore-AOSP-First: to detect brownout. Change-Id: I54e354372935e339f685fc8f5541a0568053ae08 Signed-off-by: George Lee --- vendor/pixelstats_vendor.te | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 vendor/pixelstats_vendor.te diff --git a/vendor/pixelstats_vendor.te b/vendor/pixelstats_vendor.te new file mode 100644 index 00000000..ec6a67b0 --- /dev/null +++ b/vendor/pixelstats_vendor.te @@ -0,0 +1,6 @@ +# BCL +allow pixelstats_vendor sysfs_bcl:dir search; +allow pixelstats_vendor sysfs_bcl:file r_file_perms; +allow pixelstats_vendor mitigation_vendor_data_file:dir search; +allow pixelstats_vendor mitigation_vendor_data_file:file { read write }; +get_prop(pixelstats_vendor, vendor_brownout_reason_prop);