Can I send a “received SMS”?

The name is obvious. Can I send an “SMS of intent” to an Android phone? In other words, actually receive custom SMS to fake some SMS receivers.

+5
source share
1 answer

You can create fake SMS (type GMS) to inline catch as a real message. Here is my answer

 Intent intent = new Intent();
intent.setClassName("com.android.mms",
        "com.android.mms.transaction.SmsReceiverService");
intent.setAction("android.provider.Telephony.SMS_RECEIVED");
intent.putExtra("pdus", new Object[] { pdu });
intent.putExtra("format", "3gpp");
context.startService(intent);
+3
source

All Articles