summaryrefslogtreecommitdiffstats
path: root/services/net
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2015-09-25 12:54:06 +0900
committerLorenzo Colitti <lorenzo@google.com>2015-09-25 12:57:39 +0900
commit9795a1d8b9094bd571f653b8de0c531d4466fe46 (patch)
tree7a840727660c35da962738f437a3b954feefb80f /services/net
parent629909e02b97796ff0b79dbd03c2e72dd3d1e6bb (diff)
downloadframeworks_base-9795a1d8b9094bd571f653b8de0c531d4466fe46.zip
frameworks_base-9795a1d8b9094bd571f653b8de0c531d4466fe46.tar.gz
frameworks_base-9795a1d8b9094bd571f653b8de0c531d4466fe46.tar.bz2
Give the DhcpClient alarm broadcasts foreground priority.
Bug: 24265658 Bug: 24224067 Change-Id: I375097e7957643efb4bc0bb81318b13d9b9c82c1
Diffstat (limited to 'services/net')
-rw-r--r--services/net/java/android/net/dhcp/DhcpClient.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/net/java/android/net/dhcp/DhcpClient.java b/services/net/java/android/net/dhcp/DhcpClient.java
index 9ee9cf4..e0d2ac1 100644
--- a/services/net/java/android/net/dhcp/DhcpClient.java
+++ b/services/net/java/android/net/dhcp/DhcpClient.java
@@ -244,8 +244,9 @@ public class DhcpClient extends BaseDhcpStateMachine {
private PendingIntent createStateMachineCommandIntent(final String cmdName, final int cmd) {
String action = DhcpClient.class.getName() + "." + mIfaceName + "." + cmdName;
- Intent intent = new Intent(action, null)
- .addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
+ Intent intent = new Intent(action, null).addFlags(
+ Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT |
+ Intent.FLAG_RECEIVER_FOREGROUND);
// TODO: The intent's package covers the whole of the system server, so it's pretty generic.
// Consider adding some sort of token as well.
intent.setPackage(mContext.getPackageName());