1# permissions for /system/bin/dump_bq25892.sh 2# which is used to debug information about the state of the charger chip 3type dump_bq25892, domain, device_domain_deprecated; 4type dump_bq25892_exec, exec_type, file_type; 5type fw_logs_data_file, file_type, data_file_type; 6 7init_daemon_domain(dump_bq25892) 8 9# Run a shell. 10allow dump_bq25892 shell_exec:file rx_file_perms; 11 12# Run toybox. 13allow dump_bq25892 toolbox_exec:file rx_file_perms; 14 15# Use fwtool to communicate with the EC through /dev/cros_ec 16allow dump_bq25892 fwtool_exec:file rx_file_perms; 17allow dump_bq25892 cros_ec_device:chr_file rw_file_perms; 18 19# write and set world readable attribute on /data/misc/fw_logs/bq25892.txt log file 20allow dump_bq25892 fw_logs_data_file:file create_file_perms; 21allow dump_bq25892 fw_logs_data_file:dir w_dir_perms; 22