pixel_bugreport(dump_power)

allow dump_power vendor_toolbox_exec:file execute_no_trans;
allow dump_power sysfs_acpm_stats:dir r_dir_perms;
allow dump_power sysfs_acpm_stats:file r_file_perms;
allow dump_power sysfs_cpu:file r_file_perms;
allow dump_power sysfs_bcl:dir r_dir_perms;
allow dump_power sysfs_bcl:file r_file_perms;
allow dump_power sysfs_odpm:dir r_dir_perms;
allow dump_power sysfs_odpm:file r_file_perms;
allow dump_power logbuffer_device:chr_file r_file_perms;
allow dump_power sysfs_batteryinfo:dir r_dir_perms;
allow dump_power sysfs_batteryinfo:file r_file_perms;
allow dump_power sysfs_wlc:dir search;
allow dump_power sysfs_wlc:file r_file_perms;
allow dump_power sysfs_power_dump:file r_file_perms;
allow dump_power mitigation_vendor_data_file:dir rw_dir_perms;
allow dump_power mitigation_vendor_data_file:file create_file_perms;
allow dump_power mnt_vendor_file:dir search;
allow dump_power persist_file:dir search;
allow dump_power persist_battery_file:dir r_dir_perms;
allow dump_power persist_battery_file:file r_file_perms;
allow dump_power vendor_shell_exec:file execute_no_trans;
allow dump_power battery_mitigation_exec:file execute_no_trans;
allow dump_power sysfs_iio_devices:dir search;
allow dump_power sysfs:dir r_dir_perms;

userdebug_or_eng(`
  allow dump_power debugfs:dir r_dir_perms;
  allow dump_power vendor_battery_debugfs:dir r_dir_perms;
  allow dump_power vendor_battery_debugfs:file r_file_perms;
  allow dump_power vendor_pm_genpd_debugfs:file r_file_perms;
  allow dump_power vendor_charger_debugfs:dir r_dir_perms;
  allow dump_power vendor_charger_debugfs:file r_file_perms;
  allow dump_power vendor_usb_debugfs:dir r_dir_perms;
  allow dump_power vendor_usb_debugfs:file r_file_perms;
  allow dump_power vendor_votable_debugfs:dir r_dir_perms;
  allow dump_power vendor_votable_debugfs:file r_file_perms;
  allow dump_power vendor_maxfg_debugfs:dir r_dir_perms;
  allow dump_power vendor_maxfg_debugfs:file r_file_perms;
  allow dump_power self:lockdown integrity;
')

