From 267603f3bbf7a6a707aaf055297ae0c3afae51d8 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Tue, 20 Jan 2015 14:21:21 -0800 Subject: Don't launch broadcast receiver processes during boot Broadcasts that might be sent before the boot process has completed must be restricted to registered receivers, at least while still in the middle of booting. Bug 19060618 Change-Id: Ib4e0990cf252f34344f7a0bd19a0e72919013e0f --- media/java/android/media/AudioService.java | 1 + 1 file changed, 1 insertion(+) (limited to 'media/java') diff --git a/media/java/android/media/AudioService.java b/media/java/android/media/AudioService.java index f4c8986..532314d 100644 --- a/media/java/android/media/AudioService.java +++ b/media/java/android/media/AudioService.java @@ -1400,6 +1400,7 @@ public class AudioService extends IAudioService.Stub { } private void sendBroadcastToAll(Intent intent) { + intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT); final long ident = Binder.clearCallingIdentity(); try { mContext.sendBroadcastAsUser(intent, UserHandle.ALL); -- cgit v1.1