Merge "Don't launch broadcast receiver processes during boot" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
77c96dd80a
@@ -1400,6 +1400,7 @@ public class AudioService extends IAudioService.Stub {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void sendBroadcastToAll(Intent intent) {
|
private void sendBroadcastToAll(Intent intent) {
|
||||||
|
intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
|
||||||
final long ident = Binder.clearCallingIdentity();
|
final long ident = Binder.clearCallingIdentity();
|
||||||
try {
|
try {
|
||||||
mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
|
mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
|
||||||
|
|||||||
Reference in New Issue
Block a user