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

Skip to content
Commit 4b555e86 authored by Atneya Nair's avatar Atneya Nair
Browse files

[audio] Avoid startOp when restrictions in place

When AppOp restrictions are in place, starting an op will return
SOFT_DENY, but leave the op in a paused state, which can restart
unexpectedly when the restriction is removed (despite no data delivery
occurring).

Work around this by first checking if recording is restricted, and
avoiding the start call in that case.

Test: manual: start and stop recording with toggle restriction
Test: atest CtsMediaAudioPermissionTestCases
Fixes: 399138369
Bug: 293603271
Flag: EXEMPT bugfix
Change-Id: I3439f6d5fd732ba24cb82c6b744d5665ab9b7827
parent cc7fd0ec
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