Implement support for device-aware RECORD_AUDIO permission
Add a device ID as part of each AudioMix which can be used for (virtual) device specific routing decisions and policy applications. When constructing AudioRecordClients and when checking for the RECORD_AUDIO permission held by the caller - intersect the deviceID of the AudioMix as this is the place the microphone sensor is located in. Bug: 291737188 Test: atest VirtualAudioPermissionTest Change-Id: I792bd91c3b817557c1b4cf0a0f54248a0677b4b0
Loading
Please register or sign in to comment