diff options
author | Jeff Sharkey <jsharkey@android.com> | 2012-10-12 16:06:16 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2012-10-15 10:59:51 -0700 |
commit | 52801aae89196b7ad16ef21b07d2d621e7d0bb61 (patch) | |
tree | 9080cf6f71495abe82d8231237503e65946075e9 /services/java/com/android/server/AppWidgetService.java | |
parent | d86a532c5271dfbfe7378ddeb6700fafd92ecbcc (diff) | |
download | frameworks_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.java | 2 |
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, " "); |