Skip to content
Snippets Groups Projects
Commit 20b8d6b9 authored by Myles Watson's avatar Myles Watson
Browse files

Allow the Bluetooth HAL to toggle rfkill

Bug: 35657600
Test: user build of Marlin starts with BT
Change-Id: Ic2380da66467b9b1c385da7d7fa10fddf4c7fae1
parent 706bb202
No related branches found
No related tags found
No related merge requests found
...@@ -4,11 +4,6 @@ hal_server_domain(hal_bluetooth_default, hal_bluetooth) ...@@ -4,11 +4,6 @@ hal_server_domain(hal_bluetooth_default, hal_bluetooth)
type hal_bluetooth_default_exec, exec_type, file_type; type hal_bluetooth_default_exec, exec_type, file_type;
init_daemon_domain(hal_bluetooth_default) init_daemon_domain(hal_bluetooth_default)
# VTS tests need to be able to toggle rfkill
userdebug_or_eng(`
allow hal_bluetooth_default self:capability net_admin;
')
# Logging for backward compatibility # Logging for backward compatibility
allow hal_bluetooth_default bluetooth_data_file:dir ra_dir_perms; allow hal_bluetooth_default bluetooth_data_file:dir ra_dir_perms;
allow hal_bluetooth_default bluetooth_data_file:file create_file_perms; allow hal_bluetooth_default bluetooth_data_file:file create_file_perms;
...@@ -4,6 +4,9 @@ binder_call(hal_bluetooth_server, hal_bluetooth_client) ...@@ -4,6 +4,9 @@ binder_call(hal_bluetooth_server, hal_bluetooth_client)
wakelock_use(hal_bluetooth); wakelock_use(hal_bluetooth);
# The HAL toggles rfkill to power the chip off/on.
allow hal_bluetooth self:capability net_admin;
# bluetooth factory file accesses. # bluetooth factory file accesses.
r_dir_file(hal_bluetooth, bluetooth_efs_file) r_dir_file(hal_bluetooth, bluetooth_efs_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment