[ActivityManager] Bring up Service if not schedule to restart
Symptom: In some scenario, the Service process will be killed due to "remove task" while updating oomadj. And it may results to DeadObjectException while notify client to schedule unbind Service in removeConnectionLocked(). In that case, the Service was failed to scheduled restart (because the Service was removed from app.services in serviceDoneExecutingLocked() since finishing=true). The Service will unable to bring up afterward if restartDelay > 0, which the Service has been scheduled to restart before. Solution: Bring up Service if it was not in the restarting list Change-Id: I28b023f0ce36e496bd6b0c69fe71121a083be83b
Loading
Please register or sign in to comment