Add attribution context for MusicRecognitionManager attribution.
In addition: 1) Use attribution tag specified in the MusicRecognitionService's manifest. 2) Explicitly check for RECORD_AUDIO permission of receiving service. Example audio attribution from dumpsys: RECORD_AUDIO (allow): MusicRecognitionDoneByServiceX=[ Access: [fg-tpd] 2021-02-23 18:21:01.753 (-14s877ms) duration=+8s250ms proxy[uid=1000, pkg=android, attributionTag=MusicRecognitionManagerService] ] Test: atest and manual inspection of attributions with dumpsys. Change-Id: Ie415104580a1814b0b74f2d5b489bf8247d9238d Bug: 178174412 Bug: 169403302
Loading
Please register or sign in to comment