Loading
Camera: Avoid recursive deadlock during device state changes
Device state change notifications are currently triggered while holding 'mInterfaceMutex'. In case the camera provider tries to add or remove a certain device/devices, then the provider manager will try to recursively obtain the same 'mInterfaceMutex'. Also avoid holding the 'mServiceLock' when notifying the camera provider manager, access to its public interface is already synchronized via 'mInterfaceMutex'. Bug: 199240726 Test: Camera CTS Change-Id: I9c71cc93ab91adc905488f954294b641d107de72