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

Skip to content
Commit 674a47c3 authored by Jan Sebechlebsky's avatar Jan Sebechlebsky
Browse files

Fix deadlock in CameraAccessController

Use separate lock for mObserverCount and to ensure the listener
is only registered once.

This breaks the resource allocation cycle and prevents deadlock
described in b/265618228.

Bug: 265618228
Test: atest VirtualDeviceManagerServiceTest CameraAccessControllerTest
Change-Id: Ifb8345319b367aa6492a46bea404658041272cc0
parent c614b47a
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