1# init runs /system/bin/touchfwup.sh 2type touch_fw_update, domain, domain_deprecated; 3type touch_fw_update_exec, exec_type, file_type; 4type touch_fw_update_log_file, file_type, data_file_type; 5 6init_daemon_domain(touch_fw_update) 7 8# Run a shell. 9allow touch_fw_update shell_exec:file rx_file_perms; 10allow touch_fw_update toolbox_exec:file rx_file_perms; 11 12# write to /data/misc/touchfwup/rmi4update.txt 13allow touch_fw_update touch_fw_update_log_file:file create_file_perms; 14allow touch_fw_update touch_fw_update_log_file:dir w_dir_perms; 15 16# Execute rmi4update 17domain_auto_trans(touch_fw_update, rmi4update_exec, rmi4update) 18allow touch_fw_update rmi4update_exec:file rx_file_perms; 19