Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 575dbadf authored by Atneya Nair's avatar Atneya Nair Committed by Android Build Coastguard Worker
Browse files

[audio] Fix missing package Attrs from mediaserver

To correctly tolerate missing packages in attribution sources from
trusted UIDs (typically mediaserver), when those UIDs are playing audio
on behalf of a client, we should fill the package name based on the UID
in the attribution, not the UID of the caller.

This fixes AppOps failures due to package name mismatch behind the new
permission logic flag, due to incorrectly filling in the package as
"media" with a non mediaserver UID, which result in incorrectly silenced
audio tracks.

Bug: 411348062
Flag: EXEMPT bugfix
Test: manual repro with app using opensles non-pcm
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:88f29ab8aadc0c2a356cc721edd8fe217a5ecc6e)
Merged-In: I11eb2054aef135779ddf8f1e18e3bd553321e1e5
Change-Id: I11eb2054aef135779ddf8f1e18e3bd553321e1e5
parent 8adbf29b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment