Vincent Palatin | ab3d9e8 | 2015-09-30 17:27:16 -0700 | [diff] [blame] | 1 | # permissions for /system/bin/dump_bq25892.sh |
| 2 | # which is used to debug information about the state of the charger chip |
Jeff Vander Stoep | 65f1329 | 2015-11-04 08:55:47 -0800 | [diff] [blame] | 3 | type dump_bq25892, domain, domain_deprecated; |
Vincent Palatin | ab3d9e8 | 2015-09-30 17:27:16 -0700 | [diff] [blame] | 4 | type dump_bq25892_exec, exec_type, file_type; |
| 5 | type fw_logs_data_file, file_type, data_file_type; |
| 6 | |
| 7 | init_daemon_domain(dump_bq25892) |
| 8 | |
| 9 | # Run a shell. |
| 10 | allow dump_bq25892 shell_exec:file rx_file_perms; |
| 11 | |
Jeff Vander Stoep | 791f522 | 2016-03-15 09:31:58 -0700 | [diff] [blame] | 12 | # Run toybox. |
| 13 | allow dump_bq25892 toolbox_exec:file rx_file_perms; |
| 14 | |
Vincent Palatin | ab3d9e8 | 2015-09-30 17:27:16 -0700 | [diff] [blame] | 15 | # Use fwtool to communicate with the EC through /dev/cros_ec |
| 16 | allow dump_bq25892 fwtool_exec:file rx_file_perms; |
| 17 | allow 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 |
| 20 | allow dump_bq25892 fw_logs_data_file:file create_file_perms; |
| 21 | allow dump_bq25892 fw_logs_data_file:dir w_dir_perms; |