summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Atneya Nair <atneya@google.com> 2024-04-11 16:47:37 -0700
committer Atneya Nair <atneya@google.com> 2024-04-11 16:54:55 -0700
commit3abf8f96fae8c499ab81e019e3c223cb901b73c9 (patch)
tree1e18ee7dccb50a6b2260fc0231279692e4c00310
parentd699185728f605816646ec0599ee0838d53c710e (diff)
Add audioserver to AppOps uid list
AppOps error logs "Operation not found" for finishOp for audioserver (particularly WAKE_LOCK), which floods the logcat. This is because appops doesn't track the UID state for audioserver, so any ops are always MODE_ERRORED. Add audioserver to the list of non-package UIDs to simulate uidstate which allows for correct appops attribution. Test: Manual, no errors in logcat Bug: 333950879 Change-Id: I9ffea259c6b40a5c7246043bc1b0481429ce7948
-rw-r--r--services/core/java/com/android/server/appop/AppOpsService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/appop/AppOpsService.java b/services/core/java/com/android/server/appop/AppOpsService.java
index fb627854209d..86efe732a6b5 100644
--- a/services/core/java/com/android/server/appop/AppOpsService.java
+++ b/services/core/java/com/android/server/appop/AppOpsService.java
@@ -248,6 +248,7 @@ public class AppOpsService extends IAppOpsService.Stub {
Process.ROOT_UID,
Process.PHONE_UID,
Process.BLUETOOTH_UID,
+ Process.AUDIOSERVER_UID,
Process.NFC_UID,
Process.NETWORK_STACK_UID,
Process.SHELL_UID};