From 782f5aeb2bd98b2ea5ebddd49d89bca17c107912 Mon Sep 17 00:00:00 2001 From: Pyuli Naithani Date: Sun, 21 Aug 2022 03:17:33 +0000 Subject: [PATCH] Fix the bug introduced in ag/19575369 The bug printed the wrong listener in the dump funtion. BUG:240200048 Test: Manual Change-Id: I6319cf04c430047ed3fc279e1b62dfe8c40a9b64 --- .../android/server/appop/LegacyAppOpsServiceInterfaceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/appop/LegacyAppOpsServiceInterfaceImpl.java b/services/core/java/com/android/server/appop/LegacyAppOpsServiceInterfaceImpl.java index 5e4698f72a44b..482f94a46e426 100644 --- a/services/core/java/com/android/server/appop/LegacyAppOpsServiceInterfaceImpl.java +++ b/services/core/java/com/android/server/appop/LegacyAppOpsServiceInterfaceImpl.java @@ -568,7 +568,7 @@ public class LegacyAppOpsServiceInterfaceImpl implements AppOpsServiceInterface printedOpHeader = true; } printWriter.print(" #"); printWriter.print(j); printWriter.print(": "); - printWriter.println(mOpModeWatchers.valueAt(i).toString()); + printWriter.println(modeChangedListenerSet.valueAt(j).toString()); } } }