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

Commit 16241447 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Display warning about bugreport delay." into nyc-dev

am: f99193b7

* commit 'f99193b7':
  Display warning about bugreport delay.

Change-Id: I3203a50143c7fff4f5ffe98625ebd0fd357fb0f7
parents 0d505c06 f99193b7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1182,6 +1182,8 @@ static int bugreport(TransportType transport_type, const char* serial, int argc,
    }
    std::string output;

    fprintf(stderr, "Bugreport is in progress and it could take minutes to complete.\n"
            "Please be patient and do not cancel or disconnect your device until it completes.\n");
    int status = send_shell_command(transport_type, serial, "bugreportz", true, &output);
    if (status != 0 || output.empty()) return status;
    output = android::base::Trim(output);