* commit '57512008e2f9f1f04ff5a11b522533c753ed36fe': Set foreground priority for shutdown receivers.
This commit is contained in:
committed by
Android Git Automerger
commit
58d52298be
@@ -297,7 +297,9 @@ public final class ShutdownThread extends Thread {
|
|||||||
|
|
||||||
// First send the high-level shut down broadcast.
|
// First send the high-level shut down broadcast.
|
||||||
mActionDone = false;
|
mActionDone = false;
|
||||||
mContext.sendOrderedBroadcastAsUser(new Intent(Intent.ACTION_SHUTDOWN),
|
Intent intent = new Intent(Intent.ACTION_SHUTDOWN);
|
||||||
|
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
|
||||||
|
mContext.sendOrderedBroadcastAsUser(intent,
|
||||||
UserHandle.ALL, null, br, mHandler, 0, null, null);
|
UserHandle.ALL, null, br, mHandler, 0, null, null);
|
||||||
|
|
||||||
final long endTime = SystemClock.elapsedRealtime() + MAX_BROADCAST_TIME;
|
final long endTime = SystemClock.elapsedRealtime() + MAX_BROADCAST_TIME;
|
||||||
|
|||||||
Reference in New Issue
Block a user