1type battery_mitigation, domain; 2type battery_mitigation_exec, exec_type, vendor_file_type, file_type; 3init_daemon_domain(battery_mitigation) 4get_prop(battery_mitigation, boot_status_prop) 5get_prop(battery_mitigation, vendor_brownout_reason_prop) 6get_prop(battery_mitigation, system_boot_reason_prop) 7set_prop(battery_mitigation, vendor_mitigation_ready_prop) 8set_prop(battery_mitigation, vendor_brownout_br_feasible_prop) 9 10hal_client_domain(battery_mitigation, hal_thermal); 11hal_client_domain(battery_mitigation, hal_health); 12 13r_dir_file(battery_mitigation, sysfs_batteryinfo) 14r_dir_file(battery_mitigation, sysfs_iio_devices) 15r_dir_file(battery_mitigation, sysfs_thermal) 16r_dir_file(battery_mitigation, thermal_link_device) 17r_dir_file(battery_mitigation, sysfs_odpm) 18allow battery_mitigation sysfs_bcl:dir r_dir_perms; 19allow battery_mitigation sysfs_bcl:file r_file_perms; 20allow battery_mitigation sysfs_bcl:lnk_file r_file_perms; 21allow battery_mitigation sysfs_thermal:lnk_file r_file_perms; 22allow battery_mitigation mitigation_vendor_data_file:dir rw_dir_perms; 23allow battery_mitigation mitigation_vendor_data_file:file create_file_perms; 24 25# Allow battery_mitigation to use Binder IPC so that service manager can notify it for callbacks 26binder_use(battery_mitigation) 27