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

Skip to content
Commit 577bd540 authored by Charles Chen's avatar Charles Chen
Browse files

Fix deadlock between WMGlobal and WMS

In the system server, there may be a deadlock between WMGlobal and WMS
A possible scenario is:
WMS holds globalLock and call WMGlobal#getWindowManagerService,
which required to lock WMGlobal instance, while the other compnent
holds WMGlobal and call WMS API directly without binder call,
which requires WM gobalLock.

This CL sets WMS for system proces. In this way,
WMGlobal#getWindowManagerService could be used direcly without holding
WMGlobal instance and prevent deadlock.

Test: atest WmTests
Bug: 320848325
Change-Id: I2617d4139d4305161d6712d92a90fd9207d8227c
parent b416a714
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