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

Commit 95f359e9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Logs UID that requested a bugreport." into oc-mr1-dev

parents 74f88fe8 7f149b0f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -12943,6 +12943,10 @@ public class ActivityManagerService extends IActivityManager.Stub
                throw new IllegalArgumentException("Provided bugreport type is not correct, value: "
                        + bugreportType);
        }
        // Always log caller, even if it does not have permission to dump.
        String type = extraOptions == null ? "bugreport" : extraOptions;
        Slog.i(TAG, type + " requested by UID " + Binder.getCallingUid());
        enforceCallingPermission(android.Manifest.permission.DUMP, "requestBugReport");
        if (extraOptions != null) {
            SystemProperties.set("dumpstate.options", extraOptions);