Merge "Update UidRecord when capability changes."

This commit is contained in:
TreeHugger Robot
2020-02-06 00:20:42 +00:00
committed by Android (Google) Code Review

View File

@@ -330,6 +330,7 @@ public final class OomAdjuster {
// If this proc state is changed, need to update its uid record here
if (uidRec.getCurProcState() != PROCESS_STATE_NONEXISTENT
&& (uidRec.setProcState != uidRec.getCurProcState()
|| uidRec.setCapability != uidRec.curCapability
|| uidRec.setWhitelist != uidRec.curWhitelist)) {
ActiveUids uids = mTmpUidRecords;
uids.clear();