diff options
author | Christopher Tate <ctate@google.com> | 2015-01-20 14:21:21 -0800 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2015-01-20 14:21:21 -0800 |
commit | 267603f3bbf7a6a707aaf055297ae0c3afae51d8 (patch) | |
tree | ca02f74e646912df144b54302c2de3663425d6f0 /media/java | |
parent | 7651dcb92193a5a970a2554e067ec14d6fcad802 (diff) | |
download | frameworks_base-267603f3bbf7a6a707aaf055297ae0c3afae51d8.zip frameworks_base-267603f3bbf7a6a707aaf055297ae0c3afae51d8.tar.gz frameworks_base-267603f3bbf7a6a707aaf055297ae0c3afae51d8.tar.bz2 |
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
Diffstat (limited to 'media/java')
-rw-r--r-- | media/java/android/media/AudioService.java | 1 |
1 files changed, 1 insertions, 0 deletions
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); |