Add ANR info to traces for all builds

This information (ErrorId, Subject, Process) was previously only added
to traces for eng & userdebug builds. Extending to user builds to
support Beta / Public populations.

(cherry-pick of ag/18773749)

Bug: b/235206177
Test: Tested manually
Change-Id: Ifd9f1b92dbb67dc35568ece9efc550db0abdbd78
This commit is contained in:
Ben Miles
2022-06-07 16:26:14 +01:00
parent b2c0a71761
commit b76d8c872d

View File

@@ -16,7 +16,6 @@
package com.android.server.am;
import android.os.Build;
import android.os.Trace;
import java.util.UUID;
@@ -31,7 +30,7 @@ public class TraceErrorLogger {
private static final int PLACEHOLDER_VALUE = 1;
public boolean isAddErrorIdEnabled() {
return Build.IS_DEBUGGABLE;
return true;
}
/**