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

Skip to content
Commit faaa67e6 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: Ie7d2661b4027b5ce6bee9b6c63b70f0b120dcbcc
parent 9ab2ce8e
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