Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
440204b0
Commit
440204b0
authored
8 years ago
by
Myles Watson
Committed by
android-build-merger
8 years ago
Browse files
Options
Downloads
Plain Diff
Allow the Bluetooth HAL to toggle rfkill am:
20b8d6b9
am:
ade5c284
am:
82b02338
Change-Id: I6bbe28f12e9d72c5d01691b0ba7bf229ee9378d5
parents
89efa76d
82b02338
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/hal_bluetooth_default.te
+0
-5
0 additions, 5 deletions
private/hal_bluetooth_default.te
public/hal_bluetooth.te
+3
-0
3 additions, 0 deletions
public/hal_bluetooth.te
with
3 additions
and
5 deletions
private/hal_bluetooth_default.te
+
0
−
5
View file @
440204b0
...
@@ -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;
This diff is collapsed.
Click to expand it.
public/hal_bluetooth.te
+
3
−
0
View file @
440204b0
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment