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

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

Merge "Avoid crashing in RunDumpsysProto when not zipping" into pi-dev

parents 0bc21a6b 1e27b08c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1159,6 +1159,10 @@ static void RunDumpsysTextNormalPriority(const std::string& title,
static void RunDumpsysProto(const std::string& title, int priority,
                            std::chrono::milliseconds timeout,
                            std::chrono::milliseconds service_timeout) {
    if (!ds.IsZipping()) {
        MYLOGD("Not dumping %s because it's not a zipped bugreport\n", title.c_str());
        return;
    }
    sp<android::IServiceManager> sm = defaultServiceManager();
    Dumpsys dumpsys(sm.get());
    Vector<String16> args;