diff options
-rw-r--r-- | services/core/java/com/android/server/am/AppExitInfoTracker.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/services/core/java/com/android/server/am/AppExitInfoTracker.java b/services/core/java/com/android/server/am/AppExitInfoTracker.java index 6e135d65f127..bab133f58c11 100644 --- a/services/core/java/com/android/server/am/AppExitInfoTracker.java +++ b/services/core/java/com/android/server/am/AppExitInfoTracker.java @@ -189,12 +189,14 @@ public final class AppExitInfoTracker { } void onSystemReady() { - // Read the sysprop set by lmkd and set this to persist so app could read it. - SystemProperties.set("persist.sys.lmk.reportkills", - Boolean.toString(SystemProperties.getBoolean("sys.lmk.reportkills", false))); registerForUserRemoval(); registerForPackageRemoval(); - IoThread.getHandler().post(this::loadExistingProcessExitInfo); + IoThread.getHandler().post(() -> { + // Read the sysprop set by lmkd and set this to persist so app could read it. + SystemProperties.set("persist.sys.lmk.reportkills", + Boolean.toString(SystemProperties.getBoolean("sys.lmk.reportkills", false))); + loadExistingProcessExitInfo(); + }); } @GuardedBy("mService") |