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

Commit 6cc15f04 authored by Felipe Leme's avatar Felipe Leme
Browse files

Set Process' start times for SystemServer.

They're currently 0, because Process.setStartTimes() is only called by
AM when binding to apps.

Test: manual verification
Bug: 141388849

Change-Id: I53fb4d62db06f6758c0e73138993e7d1230ea136
parent ba58fd61
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -394,6 +394,7 @@ public final class SystemServer {
        mStartCount = SystemProperties.getInt(SYSPROP_START_COUNT, 0) + 1;
        mRuntimeStartElapsedTime = SystemClock.elapsedRealtime();
        mRuntimeStartUptime = SystemClock.uptimeMillis();
        Process.setStartTimes(mRuntimeStartElapsedTime, mRuntimeStartUptime);

        // Remember if it's runtime restart(when sys.boot_completed is already set) or reboot
        // We don't use "mStartCount > 1" here because it'll be wrong on a FDE device.