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

Commit f15a6a49 authored by Kunal's avatar Kunal
Browse files

Adding in fix for ensuring that mCrashing is cleared on restart for

persistent processes

Test: manual testing on device by building
Bug: 282720814
Fixes: 282720814
Change-Id: I288a7e6449bc6bd173c87d2242ff8350533dc816
parent d81d097d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3087,6 +3087,8 @@ public final class ProcessList {
            if (old == proc && proc.isPersistent()) {
                // We are re-adding a persistent process.  Whatevs!  Just leave it there.
                Slog.w(TAG, "Re-adding persistent process " + proc);
                // Ensure that the mCrashing flag is cleared, since this is a restart
                proc.resetCrashingOnRestart();
            } else if (old != null) {
                if (old.isKilled()) {
                    // The old process has been killed, we probably haven't had
+4 −0
Original line number Diff line number Diff line
@@ -618,6 +618,10 @@ class ProcessRecord implements WindowProcessListener {
        mPkgList.put(_info.packageName, new ProcessStats.ProcessStateHolder(_info.longVersionCode));
    }

    void resetCrashingOnRestart() {
        mErrorState.setCrashing(false);
    }

    @GuardedBy(anyOf = {"mService", "mProcLock"})
    UidRecord getUidRecord() {
        return mUidRecord;