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

Commit 06316b1e authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Allow broadcast receivers to receive DATA_SMS_RECEIVED_ACTION.

Allow apps in the background to receive DATA_SMS_RECEIVED_ACTION as
that behavior is consistent with other SMS related broadcast intents.

Test: Basic telephony sanity
Bug: 62106654
Change-Id: Ic9e8aad77a2a5705fcd1269a23fbcab7016d32b7
parent 7d0d3d17
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1121,6 +1121,9 @@ public abstract class InboundSmsHandler extends StateMachine {
            Uri uri = Uri.parse("sms://localhost:" + destPort);
            intent.setData(uri);
            intent.setComponent(null);
            // Allow registered broadcast receivers to get this intent even
            // when they are in the background.
            intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
        }

        Bundle options = handleSmsWhitelisting(intent.getComponent());