summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNadav Bar <nadavbar@google.com>2020-02-05 15:03:23 +0200
committerNadav Bar <nadavbar@google.com>2020-02-12 16:16:54 +0200
commit24e0298b57c42eabb58d0024a7146718055fcbbf (patch)
tree0a52f2a36a664a18bbe30305d6b5c6bcdb965ba2 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent68021fb9d02ea51d2866a07c5a829f9a9d39435a (diff)
Fix voice communication audio playback capture
This change fixes the CTS failure in AudioPlaybackCaptureTest caused by ag/10111312 and ag/10111311. It contains the following fixes/changes: - Capturing of voice communication is only allowed when the caller is explicitly asking for an attribute match USAGE_VOICE_COMMUNICATION. If an app adds that match rule, then the permission check for CAPTURE_VOICE_COMMUNICATION_OUTPUT will take place. For all other rules (like UID), the caller will receive silenced audio for voice communication. - Capture of voice communication will be only allowed for privileged capture. Hence other then CAPTURE_VOICE_COMMUNUCATION_OUTPUT, the calling app is also assume to have CAPTURE_MEDIA_OUTPUT. - Code cleanup, mainly in AudioService.java This change is accompanied by ag/10242954 on the native side. Bug: 148559127 Test: Manually Test: atest PlaybackCaptureTest (with the version prior to ag/10220852) Test: atest com.google.android.gts.audio.AudioHostTest Change-Id: I1077db2e0f3c4133fca97d7b461f673bac693676
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions