Perform device capability check when checking device aware permission on
remote devices
When checking CAMERA or RECORD_AUDIO permissions on a remote device,
perform corresponding device capability check. If the remote device
doesn't have such capability fall back the permission check to the default
device so the camera/recorder on the default device can be used if
permission is granted.
Bug: 331165303
Test: atest VirtualAudioPermissionTest
Change-Id: If205eee8bcb9adcf474aef7f0ee35b4cc22e7ab3
3 files changed