Copy predump file's output in case of timeout

Don't retry on predump timeout, as retrying fails. Instead, copy
debuggerd_client's original message from the temporary dump file.

Bug: 286861949
Test: manually tested
Change-Id: If8e81a46cd42abe07cc6c392028e5efb0cb902d6
This commit is contained in:
Mohamad Mahmoud
2023-06-12 16:05:04 +00:00
parent 57b293ef31
commit baae1c5873

View File

@@ -392,11 +392,9 @@ public class StackTracesDumpHelper {
if (TEMP_DUMP_TIME_LIMIT <= timeTaken) {
Slog.e(TAG, "Aborted stack trace dump (current primary pid=" + pid
+ "); deadline exceeded.");
tmpTracesFile.delete();
if (latencyTracker != null) {
latencyTracker.dumpStackTracesTempFileTimedOut();
}
return null;
}
if (DEBUG_ANR) {
Slog.d(TAG, "Done with primary pid " + pid + " in " + timeTaken + "ms"