Merge "Don't record audio if UID is idle - sepolicy"
This commit is contained in:
commit
1572cbaffa
1 changed files with 12 additions and 0 deletions
|
@ -29,6 +29,7 @@ userdebug_or_eng(`
|
|||
')
|
||||
|
||||
add_service(audioserver, audioserver_service)
|
||||
allow audioserver activity_service:service_manager find;
|
||||
allow audioserver appops_service:service_manager find;
|
||||
allow audioserver batterystats_service:service_manager find;
|
||||
allow audioserver permission_service:service_manager find;
|
||||
|
@ -45,6 +46,17 @@ allow audioserver audio_device:chr_file { read write };
|
|||
# For A2DP bridge which is loaded directly into audioserver
|
||||
unix_socket_connect(audioserver, bluetooth, bluetooth)
|
||||
|
||||
# Allow shell commands from ADB for CTS testing/dumping
|
||||
allow audioserver adbd:fd use;
|
||||
allow audioserver adbd:unix_stream_socket { read write };
|
||||
|
||||
# Allow shell commands from ADB for CTS testing/dumping
|
||||
userdebug_or_eng(`
|
||||
allow audioserver su:fd use;
|
||||
allow audioserver su:fifo_file { read write };
|
||||
allow audioserver su:unix_stream_socket { read write };
|
||||
')
|
||||
|
||||
###
|
||||
### neverallow rules
|
||||
###
|
||||
|
|
Loading…
Reference in a new issue