summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorBen Miles <benmiles@google.com>2021-11-09 11:17:49 +0000
committerBen Miles <benmiles@google.com>2021-11-11 14:06:24 +0000
commitdfec95bc84ababfe8d005fec68fc4ba7fd8295ee (patch)
tree898389cec4436b21da713b68588bf9a5264b315b /proto
parent75251249f23c9a3afacda3a0b97eb705d3a2b56b (diff)
downloadbase-dfec95bc84ababfe8d005fec68fc4ba7fd8295ee.tar.gz
Log java crashes & native crashes in critical event log
Change-Id: I9efe1ff6c98dec47edbc95974d0959c343c7474f Test: atest CriticalEventLogTest Bug: 200263868
Diffstat (limited to 'proto')
-rw-r--r--proto/src/criticalevents/critical_event_log.proto43
1 files changed, 43 insertions, 0 deletions
diff --git a/proto/src/criticalevents/critical_event_log.proto b/proto/src/criticalevents/critical_event_log.proto
index 0e0343461d9e..25814eca9a85 100644
--- a/proto/src/criticalevents/critical_event_log.proto
+++ b/proto/src/criticalevents/critical_event_log.proto
@@ -57,6 +57,8 @@ message CriticalEventProto {
Watchdog watchdog = 2;
HalfWatchdog half_watchdog = 3;
AppNotResponding anr = 4;
+ JavaCrash java_crash = 5;
+ NativeCrash native_crash = 6;
}
message Watchdog {
@@ -99,6 +101,47 @@ message CriticalEventProto {
optional ProcessClass process_class = 5;
}
+ message JavaCrash {
+ // The crash exception class.
+ // Optional, may be redacted for privacy.
+ optional string exception_class = 1;
+
+ // Name of the crashed process.
+ // Optional, may be redacted for privacy.
+ optional string process = 2;
+
+ // PID of the crashed process.
+ // Required.
+ optional int32 pid = 3;
+
+ // UID of the crashed process.
+ // Required.
+ optional int32 uid = 4;
+
+ // Category of the crashed process (DATA_APP, SYSTEM_APP, etc).
+ // Required.
+ optional ProcessClass process_class = 5;
+ }
+
+ message NativeCrash {
+ // Name of the crashed process.
+ // Optional, may be redacted for privacy.
+ optional string process = 1;
+
+ // PID of the crashed process.
+ // Required.
+ optional int32 pid = 2;
+
+ // UID of the crashed process.
+ // Required.
+ optional int32 uid = 3;
+
+ // Category of the crashed process (DATA_APP, SYSTEM_APP, etc).
+ // Required.
+ optional ProcessClass process_class = 4;
+ }
+
+
// Mirrors definition & values in {@link android.server.ServerProtoEnums}.
enum ProcessClass {
PROCESS_CLASS_UNKNOWN = 0;