Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 94a13790 authored by Jing Ji's avatar Jing Ji
Browse files

Don't starting new app instance if failed to kill its old instance

If we've killed an app process but it's not dead, meanwhile we'd need
to start a new instance of this app, we'll hold the creation until
the old instance is gone. If it's been waited for more than 10s,
cancel the creation of the new instance. Also make the waiting here
asynchronized to unblock the process start thread.

Bug: 195955563
Test: Manual - Loop start camera, sleep 1, stop camera app
Test: Manual - Freeze app, then kill & restart & unfreeze
Test: atest CtsAppTestCases
Test: atest FrameworksServicesTests
Test: atest FrameworksMockingServicesTests
Change-Id: I036020366b29cc6da99aebb2e0bc12bf5c337613
parent fdd87b87
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment