Mark the persistent flag while creating the ProcessRecord

...if it's a persistent app indeed.

As we're not necessarily reusing the ProcessRecord now - including
persistent process - this was to handle the case where the old
process has been killed but not cleaned up, and the new process
creation request comes in - in this case, we'll create a new
ProcessRecord. If we do so, we need to set the persistent flag
correctly to the new ProcessRecord.

Bug: 230296979
Test: Manual
Change-Id: I2c8f8d054c64a8dd97ee4913779e927464382525
1 file changed