commit | b932319bff5d0d29a287bcc7bd0b594685a83036 | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Tue Feb 05 13:32:18 2013 -0800 |
committer | Jeff Sharkey <jsharkey@android.com> | Tue Feb 05 13:32:18 2013 -0800 |
tree | 0d68873d9c303062afeb95e8b782b4af61ed8eb1 | |
parent | cd80392fe706e0b419a3e655702006a25d397243 [diff] [blame] |
Require that bugreport requesters have DUMP. Bug: 8139970 Change-Id: I055855fa5450521122e54ed39df5981190b401bd
diff --git a/services/java/com/android/server/am/ActivityManagerService.java b/services/java/com/android/server/am/ActivityManagerService.java index 252cae2..af412df 100644 --- a/services/java/com/android/server/am/ActivityManagerService.java +++ b/services/java/com/android/server/am/ActivityManagerService.java
@@ -7413,9 +7413,7 @@ } public void requestBugReport() { - // No permission check because this can't do anything harmful -- - // it will just eventually cause the user to be presented with - // a UI to select where the bug report goes. + enforceCallingPermission(android.Manifest.permission.DUMP, "requestBugReport"); SystemProperties.set("ctl.start", "bugreport"); }