Skip to content
Commit ecc7a0a5 authored by lihuan3's avatar lihuan3 Committed by 欢 李
Browse files

[Bugfix] Fix the wrong lastBackgroundTime in UidRecord



Test:A process call into updateOomAdjLocked in background
which will set its uidRec.lastBackgroundTime = SystemClock.uptimeMillis();
and then in the idleUidsLocked() method it will compare the
lastBackgroundTime with the elapsedRealtime which may cause a
process which just go into background a few seconds ago become
idle state and then be killed by this

Change-Id: I419a555ef2f6490c26290b19fc86756fde293551
Signed-off-by: default avatarlihuan3 <lihuan3@xiaomi.com>
parent c779768d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment