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

Commit 6e62dbb2 authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Move the persistent property set to IoThread"

parents 5819cbcb ab6a254f
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -189,12 +189,14 @@ public final class AppExitInfoTracker {
    }

    void onSystemReady() {
        registerForUserRemoval();
        registerForPackageRemoval();
        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)));
        registerForUserRemoval();
        registerForPackageRemoval();
        IoThread.getHandler().post(this::loadExistingProcessExitInfo);
            loadExistingProcessExitInfo();
        });
    }

    @GuardedBy("mService")