1type hal_dumpstate_impl, domain;
2hal_server_domain(hal_dumpstate_impl, hal_dumpstate)
3
4type hal_dumpstate_impl_exec, exec_type, file_type;
5init_daemon_domain(hal_dumpstate_impl)
6
7# hal_dumstate_impl sets the debug.bq25892 property
8# to trigger the charger chip register dump as root by init
9set_prop(hal_dumpstate_impl, debug_bq25892_prop)
10
11# allow hal_dumstate_impl to execute fwtool in its own domain
12allow hal_dumpstate_impl fwtool_exec:file rx_file_perms;
13
14# read /data/misc/fw_logs/bq25892.txt log file
15allow hal_dumpstate_impl fw_logs_data_file:file r_file_perms;
16allow hal_dumpstate_impl fw_logs_data_file:dir  r_dir_perms;
17
18# read /data/misc/touchfwup/rmi4update.txt log file
19allow hal_dumpstate_impl touch_fw_update_log_file:dir r_dir_perms;
20allow hal_dumpstate_impl touch_fw_update_log_file:file r_file_perms;
21
22allow hal_dumpstate_impl host1x_device:chr_file rw_file_perms;
23
24allow hal_dumpstate_impl debugfs_ion:file r_file_perms;
25allow hal_dumpstate_impl shell_data_file:file getattr;
26allow hal_dumpstate_impl sysfs:file { getattr open read };
27