audio policy: fix playback permission checks
Align playback permission checks implementation in getOutputforAttr() on capture checks in getInputForAttr(): use an "output type" returned by audio policy manager and check permission accordingly. - Do not modify but reject request to play to call uplink when permission is denied. - Add missing permission check for injection to remote submix. - Clarify permission check for record from remote submix by using the uid/pid of client explicitly. Bug: Test: CTS test for AudioTrack and AudioREcord. Test: GTS tests for dynamic policies and playback capture Change-Id: Ic0eb3b9921a491e97c58fa8f637583059a54b3a2
Loading
Please register or sign in to comment