Merge "Don't launch broadcast receiver processes during boot" into lmp-mr1-dev

This commit is contained in:
Christopher Tate
2015-01-20 22:54:57 +00:00
committed by Android (Google) Code Review

View File

@ -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);