Update deviceID for VirtualAudioDevice based on policy
If the VD AUDIO policy is DEFAULT: Device-aware permissions should not
take effect, thus use the default context to register the audio policies
in VirtualAudioDevice.
If the VD AUDIO policy is CUSTOM: Device-aware permissions should be
enabled and we use the device-context for the current VirtualDevice to
register the audio policies in VirtualAudioDevice.
Bug: 291737188
Test: atest VirtualAudioPermissionTest
Change-Id: I8b9d6b62543f18b4af1adb5f45ec5d49703e5c80
1 file changed