Revert "audio: fix missing package name in attribution source"
This reverts commit 063c4ed57a6e5557fd81b612b0d960942f480c8e.
This fix is indirectly causing problems with UIDs without
associated package names like trusted hotword.
Reverting until a good solution is found for this particular
case.
Bug: 254403803
Bug: 243376549
Test: manual Hotword regression
Change-Id: Ib19afd740e10d8bc26fc173641f7463719d079fd
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index ac8909f..95ca855 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -529,7 +529,10 @@
id, attr.flags);
return nullptr;
}
- return new OpPlayAudioMonitor(attributionSource, attr.usage, id);
+
+ AttributionSourceState checkedAttributionSource = AudioFlinger::checkAttributionSourcePackage(
+ attributionSource);
+ return new OpPlayAudioMonitor(checkedAttributionSource, attr.usage, id);
}
AudioFlinger::PlaybackThread::OpPlayAudioMonitor::OpPlayAudioMonitor(