Merge "Grant CAP_WAKE_ALARM to the Bluetooth process for any user"
am: 26fdbc1833
* commit '26fdbc18337a8e9d16e18255e39ce7a16e83d57b':
Grant CAP_WAKE_ALARM to the Bluetooth process for any user
diff --git a/core/jni/com_android_internal_os_Zygote.cpp b/core/jni/com_android_internal_os_Zygote.cpp
index 041e693..4194aa4 100644
--- a/core/jni/com_android_internal_os_Zygote.cpp
+++ b/core/jni/com_android_internal_os_Zygote.cpp
@@ -608,7 +608,7 @@
jlong capabilities = 0;
// Grant CAP_WAKE_ALARM to the Bluetooth process.
- if (uid == AID_BLUETOOTH) {
+ if (multiuser_get_app_id(uid) == AID_BLUETOOTH) {
capabilities |= (1LL << CAP_WAKE_ALARM);
}