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

Commit e74801e1 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Drop all frames when camera permission is declined

If camera access permission is declined during startCameraStreamingOps,
there could still be camera frames leaked to clients because
settings device state to ERROR doesn't stop Camera3OutputStreams from
queuing buffers back the buffer queue.

The fix it to drop buffers for all streams as soon as
checkPermissionforCameraForStartDataDelivery fails.

Flag: EXEMPT bugfix
Test: Camera CTS and CameraPermissionTest
Bug: 430808279
Change-Id: I5fc7340f1307f430b7769923850d096577a48e49
parent 35795148
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