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 <geolee@google.com>
This commit is contained in:
George Lee 2022-12-11 21:00:36 -08:00
parent fe97b2df7a
commit b17a5fc383

6
vendor/pixelstats_vendor.te vendored Normal file
View file

@ -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);