Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cafb3192 authored by Ian Pedowitz's avatar Ian Pedowitz Committed by Android Git Automerger
Browse files

am 4c74a02e: am 3af6163a: am 31fe464d: Merge "Give the DhcpClient alarm...

am 4c74a02e: am 3af6163a: am 31fe464d: Merge "Give the DhcpClient alarm broadcasts foreground priority." into mnc-dr-dev

* commit '4c74a02e':
  Give the DhcpClient alarm broadcasts foreground priority.
parents 84270fb6 4c74a02e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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());