summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/AppWidgetService.java
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2012-10-12 16:06:16 -0700
committerJeff Sharkey <jsharkey@android.com>2012-10-15 10:59:51 -0700
commit52801aae89196b7ad16ef21b07d2d621e7d0bb61 (patch)
tree9080cf6f71495abe82d8231237503e65946075e9 /services/java/com/android/server/AppWidgetService.java
parentd86a532c5271dfbfe7378ddeb6700fafd92ecbcc (diff)
downloadframeworks_base-52801aae89196b7ad16ef21b07d2d621e7d0bb61.zip
frameworks_base-52801aae89196b7ad16ef21b07d2d621e7d0bb61.tar.gz
frameworks_base-52801aae89196b7ad16ef21b07d2d621e7d0bb61.tar.bz2
Protect more service dump() methods.
Bug: 6406965 Change-Id: Ia45a580c1e6f403308e7e540f18f2c0505af0f29
Diffstat (limited to 'services/java/com/android/server/AppWidgetService.java')
-rw-r--r--services/java/com/android/server/AppWidgetService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/java/com/android/server/AppWidgetService.java b/services/java/com/android/server/AppWidgetService.java
index c18fe0e..e7e4f87 100644
--- a/services/java/com/android/server/AppWidgetService.java
+++ b/services/java/com/android/server/AppWidgetService.java
@@ -304,6 +304,8 @@ class AppWidgetService extends IAppWidgetService.Stub
@Override
public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
+ mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, TAG);
+
// Dump the state of all the app widget providers
synchronized (mAppWidgetServices) {
IndentingPrintWriter ipw = new IndentingPrintWriter(pw, " ");