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

Commit 51b54606 authored by Rajeev Kumar's avatar Rajeev Kumar
Browse files

Create a pushed atom that gets logged when the ActivityManagerService detects that an app died.

Test: Manual
Bug: 73660232
Change-Id: I8e1fda35deb1e6876da0b6638fefea9f1b92b641
parent b437f30f
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -104,6 +104,7 @@ message Atom {
        KeyguardStateChanged keyguard_state_changed = 62;
        KeyguardBouncerStateChanged keyguard_bouncer_state_changed = 63;
        KeyguardBouncerPasswordEntered keyguard_bouncer_password_entered = 64;
        AppDied app_died=65;
        // TODO: Reorder the numbering so that the most frequent occur events occur in the first 15.
    }

@@ -1235,6 +1236,17 @@ message LmkKillOccurred {
    optional int64 swap_in_bytes = 8;
}

/*
 * Logs when the ActivityManagerService detects that an app died.
 *
 * Logged from:
 *   frameworks/base/services/core/java/com/android/server/am/ActivityManagerService.java
 */
message AppDied {
    // timestamp(elapsedRealtime) of record creation
    optional uint64 timestamp_millis = 1;
}

//////////////////////////////////////////////////////////////////////
// Pulled atoms below this line //
//////////////////////////////////////////////////////////////////////