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

Commit 54c0744d authored by Atneya Nair's avatar Atneya Nair
Browse files

Move AppOps check off binder thread

We currently check the the AppOp state in response to a callback on the
binder thread which the callback is dispatched on.

However, this incoming callback is oneway, which means we don't get the
re-entrancy behavior from sync binder callback calls. This means we can
have a implicit deadlock against both of the binder threadpools:
all of our binder threads are attempting a binder txn on system server,
and all system server threads are attempting a binder txn on us (under
synthetic/extreme contention).

Fixes: 436769260
Bug: 380150343
Flag: EXEMPT bugfix
Test: manual background playback 
Change-Id: I6a6a6964dca618b20972a21faeacaac0465c8035
parent d6c59982
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