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

Skip to content
Commit 510546a9 authored by Emilian Peev's avatar Emilian Peev
Browse files

Camera: fix invalid torch flash status

If the camera is restricted by MDM, the Camera HAL is initialized and
then the connection is rejected by startCameraOps.
However, for some AP vendors, the Camera HAL will post a torch status
callback when the HAL is initialized but not when it is disconnected.

Under the above circumstances, FlashlightTile receives only
onTorchModeUnavailable callback and torch flash control is disabled
until the device is rebooted.

This patch addresses the issue by adjusting the order of startCameraOps.

Bug: 325562820
Test: Manual test with MDM policy applied

Change-Id: I47b59ac12fbd735fdfc1ba66cb34a77a7e2d4640
parent dbff6b4c
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