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

Commit ae68df27 authored by Devin Moore's avatar Devin Moore
Browse files

Get service PID from dumpsys in bugreports

Get the service PID.

Test: and shell dumpstate
Test: verify bugreport text and using the web bug_tool
Bug: 270596767
Change-Id: I9d425b8ff7a8ae29bc01b85705026bd99be3f48e
parent 04d05a69
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1252,7 +1252,8 @@ static Dumpstate::RunStatus RunDumpsysTextByPriority(const std::string& title, i
             dumpsys.writeDumpHeader(STDOUT_FILENO, service, priority);
             dumpsys.writeDumpFooter(STDOUT_FILENO, service, std::chrono::milliseconds(1));
        } else {
            status_t status = dumpsys.startDumpThread(Dumpsys::TYPE_DUMP, service, args);
             status_t status = dumpsys.startDumpThread(Dumpsys::TYPE_DUMP | Dumpsys::TYPE_PID,
                                                       service, args);
             if (status == OK) {
                dumpsys.writeDumpHeader(STDOUT_FILENO, service, priority);
                std::chrono::duration<double> elapsed_seconds;