Skip to content
Commit b73435cd authored by Christopher Tate's avatar Christopher Tate
Browse files

Don't bring up backup agents in secondary app processes

When an app needs to be launched to make its agent available, we
were taking action in response to the first 'attach' operation we got
from any process running as the right uid.  This turns out to be fraught;
it's possible that some other secondary-process component launch was
racing with the agent bringup request, such that the attach callback
arrives from that secondary app process instead of the main process.
*That,* in turn, can be fatal if it turns out to be an isolated
process or similarly incapable host environment for the agent.

So now we make sure it's actually the process we're waiting for
when deciding to instantiate the agent there.

Bug 38123540
Test: manual

Change-Id: I01648027d104cc93fe0ec9227ebab85ad3d83c88
parent f10a089f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment