Set the pid of ProcessProfileRecord for system_server

Bug: 190084282
Test: Manual - Capture system heap dump, verify notification is posted
Change-Id: I53e05a644280add45b268c96bdcc74727e4f8ca3
This commit is contained in:
Jing Ji
2021-06-03 13:46:44 -07:00
parent 327a271617
commit 7ce2715fa7

View File

@@ -1804,8 +1804,7 @@ public class ActivityManagerService extends IActivityManager.Stub
0,
new HostingRecord("system"));
app.setPersistent(true);
app.mPid = MY_PID;
app.getWindowProcessController().setPid(MY_PID);
app.setPid(MY_PID);
app.mState.setMaxAdj(ProcessList.SYSTEM_ADJ);
app.makeActive(mSystemThread.getApplicationThread(), mProcessStats);
addPidLocked(app);