Simulate received SMS on a real Android device

I am developing an app for Android phones that has something to do with texting. I have found many tutorials to simulate the received text message on an emulator, but I am testing the software on a real device.

Is there a way to trick a real Android phone into thinking it received an SMS?

I tried with adb shell

and using the command sms send

, but I think it is only available on emulators when using telnet.

+3


source to share


1 answer


As I understand it, the motive here is to create a FAKE INCOMING SMS, whether for a device or for an emulator.

You may need to do a little reverse engineering with message content providers to achieve this goal. There are messaging related content providers that you can use to add entries to the DB, which is a common SMS emulation method and also used by SMS faker apps. Please be careful not to rely on this as Android does not guarantee that this content provider will have this access forever.



Also refer to this link: http://android-developers.blogspot.com/2010/05/be-careful-with-content-providers.html

Hope this helps.

+1


source







All Articles