summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Eric Laurent <elaurent@google.com> 2023-06-06 15:43:39 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-06-06 15:43:39 +0000
commit1b4028c48c9adc4e5760c33d52ffa3326d25aa7d (patch)
tree823a5dd597b8ed1aaaa1423fcffa9526afe241a1
parentff7845ea7eea76000c7c5a0eaac0d54b68657f3d (diff)
parentc9a6258f7d95dc78e8cff883e7986158716d95e9 (diff)
Merge "AudioService: make sure intents are received by AudioService before 3p apps" into udc-dev
-rw-r--r--services/core/java/com/android/server/audio/AudioService.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/audio/AudioService.java b/services/core/java/com/android/server/audio/AudioService.java
index 336f0fb5699f..ac03c82260f9 100644
--- a/services/core/java/com/android/server/audio/AudioService.java
+++ b/services/core/java/com/android/server/audio/AudioService.java
@@ -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);