blob: 11da9df04c43e6d4f270a0997379263df73c2d6e [file] [log] [blame]
type btfwloader, domain, device_domain_deprecated;
type btfwloader_exec, exec_type, file_type;
init_daemon_domain(btfwloader)
# BtFwLoader is a shell script.
# Allow it to execute /system/bin/sh
allow btfwloader shell_exec:file rx_file_perms;
# Copy a file from /system to /data/misc/bluedroid/
allow btfwloader bluetooth_data_file:dir rw_dir_perms;
allow btfwloader bluetooth_data_file:file create_file_perms;
# Execute /system/bin/toolbox commands such as cp
allow btfwloader system_file:file rx_file_perms;
allow btfwloader toolbox_exec:file rx_file_perms;