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