audio policy: fix several problems with capture policy
- Fix accessibility service not able to get same policy as regular apps when not using VOICE_RECOGNITION source b/126785297 - Make sure two captures from same app do not silence each other (e.g two privacy sensitive captures concurrently) - Ignore clients in idle state when considering priority active clients in silencing logic. - Prevent capture while in call if privileged permission CAPTURE_AUDIO_OUTPUT is not granted - Allow capture concurrently with privacy sensitive capture or call if permission CAPTURE_AUDIO_OUTPUT is granted. - Do not silence virtual sources when sensor privacy is enabled. - Consider system persistent service as top app state. Bug: 128419018 Bug: 126785297 Test: audio smoke tests Change-Id: I7f8c7c511c674d4d46a815eaa7e9cf95e95cc3f9
Loading
Please register or sign in to comment