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

Commit f977bddd authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Whitelist ACTION_RESPOND_VIA_MESSAGE intent.

This intent is sent only by the system to wake up an SMS app to send
an SMS message on its behalf.

Test: Manual
Bug: 62048610
Change-Id: I40376f099eb41e6e605b60f24b27664c986f0fe2
parent 85c04756
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -189,6 +189,9 @@ public class RespondViaSmsManager extends CallsManagerListenerBase {
                if (SubscriptionManager.isValidSubscriptionId(subId)) {
                    intent.putExtra(PhoneConstants.SUBSCRIPTION_KEY, subId);
                }
                // Wakeup apps for the broadcast.
                // TODO: Use SmsManager instead of an intent.
                intent.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);

                SomeArgs args = SomeArgs.obtain();
                args.arg1 = phoneNumber;