From 8f1ea834f9af5ccf6cea1f529f63e727cd13b6a8 Mon Sep 17 00:00:00 2001 From: Tim Kilbourn Date: Wed, 26 Aug 2015 15:07:37 -0700 Subject: [PATCH] Handle the -a flag for dumpsys appops. Bug: 23017449 Change-Id: I6ce9ac368e2739153867c246893eb544d052834f --- services/core/java/com/android/server/AppOpsService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/core/java/com/android/server/AppOpsService.java b/services/core/java/com/android/server/AppOpsService.java index 56ebed63bc89f..c373fb8933cd6 100644 --- a/services/core/java/com/android/server/AppOpsService.java +++ b/services/core/java/com/android/server/AppOpsService.java @@ -1569,6 +1569,8 @@ public class AppOpsService extends IAppOpsService.Stub { if ("-h".equals(arg)) { dumpHelp(pw); return; + } else if ("-a".equals(arg)) { + // dump all data } else if ("write-settings".equals(arg)) { long token = Binder.clearCallingIdentity(); try {