Merge "AudioService: make sure intents are received by AudioService before 3p apps" into udc-dev am: 1b4028c48c am: d1ef559b23

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23582817

Change-Id: I6353f43852c0be2396f43849ea9152498b37326b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Eric Laurent
2023-06-06 16:14:19 +00:00
committed by Automerger Merge Worker

View File

@@ -1368,6 +1368,7 @@ public class AudioService extends IAudioService.Stub
intentFilter.addAction(AudioEffect.ACTION_OPEN_AUDIO_EFFECT_CONTROL_SESSION);
intentFilter.addAction(AudioEffect.ACTION_CLOSE_AUDIO_EFFECT_CONTROL_SESSION);
intentFilter.addAction(ACTION_CHECK_MUSIC_ACTIVE);
intentFilter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY);
mContext.registerReceiverAsUser(mReceiver, UserHandle.ALL, intentFilter, null, null,
Context.RECEIVER_EXPORTED);