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

Commit 1fcceb51 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge "[audio] Fix missing package Attrs from mediaserver" into main

parents e4f1087d 88f29ab8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ validateAttributionFromContextOrTrustedCaller(AttributionSourceState attr,
        // Legacy paths may not properly populate package name, so we attempt to handle.
        if (!attr.packageName.has_value() || attr.packageName.value() == "") {
            ALOGW("Trusted client %d provided attr with missing package name" , callingUid);
            attr.packageName = VALUE_OR_RETURN(provider.getPackagesForUid(callingUid))[0];
            attr.packageName = VALUE_OR_RETURN(provider.getPackagesForUid(attr.uid))[0];
        }
        // Behavior change: In the case of delegation, if pid is invalid,
        // filling it in with the callingPid will cause a mismatch between the