Yes, I know
@NJDude . But for some system data the only possible channel is SMS. A good example is an app which uses SMS to authenticate the number entered by the user (like WhatsApp). I developed an app that does this "whatsapp autentication". But I don't allow the user to type the code: I intercept the sms received with an Intent and call a server function (POST) that will validate the pair code & phone and the register as valid. I really would like that the SMS was deleted from received because many reasons:
- I use a keyword before the numeric code received - then, I can test the message before send the POST request to server. Of course that if I had a possibility to delete the message as soon as received I would preserve the keyword avoiding the server script even to be triggered by non authorized requests.
- The code standards (number of digits, interval an so on) could be preserved also...
- This would avoid a hacker to check the code BEFORE being detected by app (stopping the app, I don't know...) and activate the app in another phone (of course, a totally hypothetical possibility but with millions of users somebody will try)
I could list MANY reasons why it's not interesting to have SMS messages out of the control but... whatever, this is a SYSTEM behavior and we need to live with this - even WhatsApp needs..