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

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

Change-Id: I70afd10775674048bbea2469a6a896308e110909
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Eric Laurent
2023-06-06 15:52:26 +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);