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

This commit is contained in:
TreeHugger Robot 2016-05-05 03:01:29 +00:00 committed by Android (Google) Code Review
commit f99193b7aa
1 changed files with 2 additions and 0 deletions

View File

@ -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);