This app files bugreport for user-debug build with reboot reason = ocp or uvlo. Removed the dependency on BetterBug. Bug: 237287659 Test: Ensure bugreport is generated under user-debug build with reboot reason = ocp or uvlo. Change-Id: Ieaa4d02ea10413b3b7c0e314b5deb07d38d98a80 Signed-off-by: George Lee <geolee@google.com>
21 lines
968 B
Plaintext
21 lines
968 B
Plaintext
type battery_mitigation, domain;
|
|
type battery_mitigation_exec, exec_type, vendor_file_type, file_type;
|
|
init_daemon_domain(battery_mitigation)
|
|
get_prop(battery_mitigation, boot_status_prop)
|
|
set_prop(battery_mitigation, vendor_mitigation_ready_prop)
|
|
|
|
hal_client_domain(battery_mitigation, hal_thermal);
|
|
hal_client_domain(battery_mitigation, hal_health);
|
|
|
|
r_dir_file(battery_mitigation, sysfs_batteryinfo)
|
|
r_dir_file(battery_mitigation, sysfs_iio_devices)
|
|
r_dir_file(battery_mitigation, sysfs_thermal)
|
|
r_dir_file(battery_mitigation, thermal_link_device)
|
|
r_dir_file(battery_mitigation, sysfs_odpm)
|
|
allow battery_mitigation sysfs_bcl:dir r_dir_perms;
|
|
allow battery_mitigation sysfs_bcl:file r_file_perms;
|
|
allow battery_mitigation sysfs_bcl:lnk_file r_file_perms;
|
|
allow battery_mitigation sysfs_thermal:lnk_file r_file_perms;
|
|
allow battery_mitigation mitigation_vendor_data_file:dir rw_dir_perms;
|
|
allow battery_mitigation mitigation_vendor_data_file:file create_file_perms;
|