1type btfwloader, domain; 2type btfwloader_exec, exec_type, file_type; 3 4init_daemon_domain(btfwloader) 5 6# BtFwLoader is a shell script. 7# Allow it to execute /system/bin/sh 8allow btfwloader shell_exec:file rx_file_perms; 9 10# Copy a file from /system to /data/misc/bluedroid/ 11allow btfwloader bluetooth_data_file:dir rw_dir_perms; 12allow btfwloader bluetooth_data_file:file create_file_perms; 13 14# Execute /system/bin/toolbox commands such as cp 15allow btfwloader system_file:file rx_file_perms; 16