Audio policy: modify permission needed to capture from source FM_TUNER
Capturing from source AUDIO_SOURCE_FM_TUNER is possible only via @SystemApi on one end and does not capture from an actual on the other end. Accordingly, do not check android.permission.RECORD_AUDIO anymore but check privileged permission android.permission.CAPTURE_AUDIO_OUTPUT instead. Also bypass App Ops OP_RECORD_AUDIO check which is applicable only to capture from microphones. Also fix audio recording permission check in MediaRecordClient to use recordingAllowed() from ServiceUtilities Bug: 135717621 Test: CTS tests for AudioRecord Change-Id: Ibb1d72f018d2e3ceee195338f2e262183eee2a23
Loading
Please register or sign in to comment