diff options
| author | 2017-04-27 00:17:06 +0000 | |
|---|---|---|
| committer | 2017-04-27 00:17:06 +0000 | |
| commit | dedc04978e2e4770b8e98b6e554e025a9696687d (patch) | |
| tree | 13cb1dba2ebaf1e98fe41a5dfb4c57a591c1e535 | |
| parent | 3cc7ccfc69120309ac214a4f402b106812f1439f (diff) | |
| parent | ebc94ecac9199729ae7b46faa4ef6908181cad91 (diff) | |
Merge "Allow Bluetooth CAP_SYS_NICE"
am: ebc94ecac9
Change-Id: Ibf14ca3ac79d2e522584ad80dc5bf3ffc32c48bc
| -rw-r--r-- | core/jni/com_android_internal_os_Zygote.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/jni/com_android_internal_os_Zygote.cpp b/core/jni/com_android_internal_os_Zygote.cpp index b95258bca49c..6000fb56299d 100644 --- a/core/jni/com_android_internal_os_Zygote.cpp +++ b/core/jni/com_android_internal_os_Zygote.cpp @@ -685,11 +685,14 @@ static jint com_android_internal_os_Zygote_nativeForkAndSpecialize( // Grant CAP_WAKE_ALARM to the Bluetooth process. // Additionally, allow bluetooth to open packet sockets so it can start the DHCP client. + // Grant CAP_SYS_NICE to allow Bluetooth to set RT priority for + // audio-related threads. // TODO: consider making such functionality an RPC to netd. if (multiuser_get_app_id(uid) == AID_BLUETOOTH) { capabilities |= (1LL << CAP_WAKE_ALARM); capabilities |= (1LL << CAP_NET_RAW); capabilities |= (1LL << CAP_NET_BIND_SERVICE); + capabilities |= (1LL << CAP_SYS_NICE); } // Grant CAP_BLOCK_SUSPEND to processes that belong to GID "wakelock" |