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

Skip to content
Commit 5c5c8a11 authored by Eric Laurent's avatar Eric Laurent
Browse files

audio: use proper app ops API to check capture audio permission

Use AppOpsManager.checkOp() instead of AppOpsManager.noteOp() to verify
capture audio permission when creating an AudioRecord client.
This avoid false triggering of mic use UI indication if capture is not
actually active.

Test: verify main audio capture use cases
Change-Id: I38c7429bf2c8cdeaba907c868b94e39b69626c55
parent bb6d61d7
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