Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b932319b authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Require that bugreport requesters have DUMP.

Bug: 8139970
Change-Id: I055855fa5450521122e54ed39df5981190b401bd
parent cd80392f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -7413,9 +7413,7 @@ public final class ActivityManagerService extends ActivityManagerNative
    }
    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");
    }